[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


Hello,
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?

Cheers

#/etc/samba/smb.conf
#Samba configurstion file als PDC

[global]
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
nged*
strict locking = yes
time server = yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192 SO_RCVBUF=8192
interfaces = lo eth0
#bind interfaces only = yes
#host allowed = 127.0.0.1 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

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

[home]
comment = Hove Directories
path = %H
browsable = no
writeable = yes

[profiles]
path=/home/samba/profiles
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