[Samba] USRMGR Not adding users properly

Michael Barnes mbarnes at hcjb.org
Fri Nov 25 18:03:35 GMT 2005

I'm having problems adding users with usrmgr.  I can run the scripts 
from my smb.conf fine from command line and do what I need to.  But, 
when adding users with usrmgr, the login script and path statements are 
not identified and I have to go in and edit them manually.  Does adding 
a user with usrmgr not use the add user script from Samba?  Or must the 
user environment variables be added manually?

If usrmgr does NOT use the add user script from smb.conf, what does?


CentOS4, Samba 3.0.10-1.4E.2

Pertinent parts of smb.conf:
         domain logons = yes
         logon home = \\%L\%U\profile
         logon drive = n:
         logon path = \\%L\profiles\%U\%m
         logon script = scripts\%U.bat
         add machine script = /usr/sbin/adduser -g machines -c Machine 
-d /dev/null -s /bin/false -n %m$
         add user script = /usr/sbin/useradd -m %u
         delete user script = /usr/sbin/userdel -r %u
         add group script = /usr/sbin/groupadd %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
         store dos attributes = yes
         utmp = yes

         path = /home/_shares/netlogon
         browseable = no
         read only = yes
         root preexec = /home/_shares/execscripts/netlogon.sh %U %g %H 
%M %a %I %m %L
         root postexec = /home/_shares/execscripts/netlogoff.sh %U %g %H 
%M %a %I %m %T

More information about the samba mailing list