I have been experimenting with Gadmin GUI setup for Samba now that SWAT has passed on.
On startup, it complains about the default smb.conf file, backs it up and replaces with it’s own.
In setting up a Samba user, I noticed that the samba user comment field in Gadmin overwrote my “Full name” in my login account (I saw it on next spash screen login).
here is a snipit of it’s global paragraph:
[global]
…
passwd chat timeout = 120
hostname lookups = no
username map = /etc/samba/smbusers
smb passwd file = /etc/samba/smbpasswd
passwd program = /usr/bin/passwd '%u’
passwd chat = Newpassword* %n
ReTypenewpassword %n
passwdchanged*
add user script = /usr/sbin/useradd -d /dev/null -c ‘Samba User Account’ -s /dev/null ‘%u’
add user to group script=/usr/sbin/useradd -d /dev/null -c ‘Samba User Account’ -s /dev/null -g ‘%g’ ‘%u’
add group script = /usr/sbin/groupadd ‘%g’
delete user script = /usr/sbin/userdel ‘%u’
delete user from group script = /usr/sbin/userdel ‘%u’ ‘%g’
delete group script = /usr/sbin/groupdel ‘%g’
add machine script = /usr/sbin/useradd -d /dev/null -g sambamachines -c ‘Samba Machine Account’ -s /dev/null -M ‘%u’
machine password timeout = 120
…
[end of snipit]
Is it’s use of passwd rather than smbpasswd responsible for the overwrite?
Any experience out there?