[Samba] add user script going Horribly Wrong (tm)

Vicky Clarke vclarke at frontier.co.uk
Mon Aug 12 07:11:01 GMT 2002


I've tried to set up automated user addition and deletion on our Samba 
server, but something's going wrong. Users appear in /etc/passwd, but not 
in smbpasswd, so people are getting login errors and so on when they try to 
access the share. Have I missed a bit of config that's supposed to tell 
samba to set up smbpasswd's too? (smb.conf included below).

Vicky Clarke

         workgroup = DOMAIN1

# The following is excessively paranoid, but until a solid solution to the 
network browsing and reliable
# mapping of network drives issue is arrived at we'll leave it be.

         domain master = no
         local master = no
         preferred master = no

         browseable = yes
         os level = 2
         wins server =
         hosts allow = 172.17.3. 127.
         interfaces =
         encrypt passwords = yes
         guest account = Nobody
         map to guest = never
         add user script = /usr/sbin/useradd -d /share/pchomes/%u -m %u
         delete user script = /usr/sbin/userdel %u
         unix password sync = yes
         passwd program = /usr/bin/passwd %u
         passwd chat = "New password:*" %n\n "Re-enter new password:*" %n\n 
sword changed*"
         passwd chat debug = yes

# This tells samba to write log files per machine.
         log file = /var/log/samba/%m
# This sets an alternate log level. Default is 2.
         log level = 8

# Uncomment the following, if you want to use an existing NT-Server to
# authenticate users, but don't forget that you also have to create them

# locally!
         security = domain
         password server =

         local master = No

         interfaces = lo eth0

         wins support = no
         # 'yes' doesn't work; 'no' does work

         wins server =

         character set = ISO8859-15
         client code page = 850

         veto files = /*.eml/*.nws/riched20.dll/*.{*}/
         comment = Linux home directory for Vicky
         browseable = no
         valid users = vclarke root Administrator
         path = /home/vclarke
         read only = no
         create mask = 0600
         directory mask = 0700

         comment = User home directory
         path = /share/pchomes/%S
         read only = No
         create mask = 0640
         directory mask = 0750
         browseable = No
         writeable = yes
#       nt acl support = yes

# Create a general-purpose shared directory everyone can use

         comment = Art directories
         path= /share/art
         writeable = yes
         create mask = 0666
         directory mask = 0775
         nt acl support = yes
         admin users = arcserve
         mangled names = yes

More information about the samba mailing list