[Samba] usermgr.exe

Harald Kümmerle hoerner96 at gmx.de
Thu Sep 2 00:07:29 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 01 September 2004 23:37, rruegner wrote:
> Hi, it is the old nt admin tool
> to create users and groups from a windows client
> to admin a windows domain server.
> Very usefull.
> Regards

But to take full advantage of it, you have to set the parameters "add 
user script", "delete user script", "add user to group script" and so 
on. These are my settings:

smb.conf:
[global]
...
   add user script = /etc/samba/smbuseradd.sh %u
   add machine script = /usr/sbin/useradd -g machines -c "Machine" 
- -d /dev/null -s /bin/false %u
   delete user script = /etc/samba/smbuserdel.sh %u
   #delete user script = /usr/sbin/userdel %u
   add group script = /etc/samba/smbgroupadd.sh "%g"
   delete group script = /usr/sbin/groupdel "%g"
   add user to group script = /usr/bin/gpasswd -a "%u" "%g"
   delete user from group script = /usr/bin/gpasswd -d "%u" "%g"
   set primary group script = /usr/sbin/usermod -g "%g" "%u"
...

My custom scripts create quota entries and the user directories beside 
the creation/deletion of the normal Unix user account.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFBNmRHpy/Gjo6hsHYRAvoOAJ9S1WJvSs+zuA4Xo1dsdJKcDCiO1gCeMNgT
52E80hUtCMJ1gfpWUEU+4lE=
=M1Ut
-----END PGP SIGNATURE-----


More information about the samba mailing list