[Samba] unix sync problem

M. Aftab Alam a_alam at web.de
Tue Dec 7 10:16:13 GMT 2004

Hi Samba Folks,

When I comment out the following line 

unix password sync = yes

from my smb.conf. I get the following error:
Error: the 'passwd program' (/usr/bin/passwd %u) requires a '%u' parameter.

When I comment the above line, I get no error, although
passwd program /usr/bin/passwd %u 
exists in the smb.conf.

My smb.conf is as follows:

#Samba configurstion file als PDC

workgroup = office-santomis
security = user
netbios name = simpson
server string = Samba PDC running %v
;PDC Master and Browser setting
passdb backend = smbpasswd
os level = 64
prefered master = yes
local master = yes
domain master = yes

;security and logging settings
security = user
username map = /etc/samba/smbusers
domain logons = yes
log file = /var/log/samba %m
log level = 2
max log size = 50

;user profiles and home directory
logon home = \\%L\%U\.profile
logon drive = H:
logon path = \\%L\profiles\%U
#logon script = netlogon.bat
wins support = yes
smb passwd file = /var/lib/samba/private/smbpasswd
;sync unix passwords
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *Retype*new*UNIX*passwd* %n\n *Enter*
new*UNIX*passwd* %n\n *Retype*new*UNIX*passwd* %n\n *passwd*successfully*cha
strict locking = yes
time server = yes
interfaces = lo eth0
#bind interfaces only = yes
#host allowed = 192.168.178.?

;Add user script for new machnies
add user script = /usr/sbin/useradd -d /dev/null -g machines -s /bin/false -
M %u

comment = Domain login service
path = /home/samba/netlogon
public = no
readonly = yes
browsable = no

comment = Hove Directories
path = %H
browsable = no
writeable = yes

writeable = yes
browseable = no
create mask = 0600
directory mask = 0700

Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min.
weltweit telefonieren! http://freephone.web.de/?mc=021201

More information about the samba mailing list