User and Group management

Revision as of 00:31, 21 November 2014 by Remsnet (talk | contribs) (Adding Users into Samba Active Directory)

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