[Samba] (/usr/bin/passwd %u) requires a '%u' parameter

M. Aftab Alam a_alam at web.de
Mon Dec 6 13:30:11 GMT 2004

When I configuring  samba 3.0.8 as a PDC. When I run the testparm command, I get the error:
Error: the 'passwd program' (/usr/bin/passwd %u) requires a '%u' parameter. I have tried to find a solution for this problem and knew, it is a bug. If it is a bug, how can I solve this problem?


#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 #tdbsam
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

Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt neu bei WEB.DE FreeMail: http://freemail.web.de/?mc=021193

More information about the samba mailing list