Difference between revisions of "User and Group management"

(Created page with " = User and Group and Computer accountd management with samba-tool = == add / delete users with samba-tool == === Adding Users into Samba Active Directory === Unlike Samba ...")
 
(Adding Users into Samba Active Directory)
Line 4: Line 4:
 
== add / delete users with samba-tool ==
 
== add / delete users with samba-tool ==
  
=== Adding Users into Samba Active Directory ===
+
== Adding Users into Samba Active Directory ==
 
Unlike Samba 3, Samba 4 does not require a local Unix user for each Samba user that is created.
 
Unlike Samba 3, Samba 4 does not require a local Unix user for each Samba user that is created.
  
Line 10: Line 10:
  
 
   $ samba-tool user add USERNAME
 
   $ samba-tool user add USERNAME
 
  
 
=== samba-tool- Delete  Users from Samba Active Directory ===
 
=== samba-tool- Delete  Users from Samba Active Directory ===

Revision as of 00:31, 21 November 2014

User and Group and Computer accountd management with samba-tool

add / delete users with samba-tool

Adding Users into Samba Active Directory

Unlike Samba 3, Samba 4 does not require a local Unix user for each Samba user that is created.

To create a Samba user, use the following command at samba-ad1 via ssh login as root :

 $ samba-tool user add USERNAME

samba-tool- Delete Users from Samba Active Directory

 # samba-tool user delete stduser

samba-tool -- create group from Samba Active Directory

 ~# samba-tool group add stdgroup
  Added group stdgroup

samba-tool - delete group from Samba Active Directory

 ~# samba-tool group delete stdgroup
  Added group stdgroup

samba-tool - group addmembers - Samba Active Directory

 ~# samba-tool group removemembers "Domain Users" stduser
 Removed members from group Domain Users

samba-tool- group removemembers - Samba Active Directory

 ~# samba-tool group removemembers "Domain Users" stduser
 Removed members from group Domain Users


samba-tool - group listmembers - Samba Active Directory

 ~# samba-tool group listmembers "Domain Users" | grep stduser
  stduser


samba-tool - Create a user, create a group, add the user to the group - Samba Active Directory

 ~# samba-tool user add stduser
   User 'stduser' created successfully
 
 ~# samba-tool group add stdgroup
  Added group stdgroup

 ~# samba-tool group addmembers stdgroup stduser
  Added members to group stdgroup