Hello all, I am using samba 3.0.10 on redhat. I am getting the following error when i run "testparm" eventhough i have a "smbpasswd" file. [root@localhost samba]# testparm Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[public]" Loaded services file OK. ERROR: the 'unix password sync' parameter is set and the 'passwd program' () cannot be executed (error was No such file or directory). ERROR: the 'passwd program' () requires a '%u' parameter. Server role: ROLE_STANDALONE # Global parameters [global] workgroup = ITGROUP netbios name = ITBOX server string = Samba Test Server smb passwd file = /etc/samba/smbpasswd %u username map = /etc/samba/smbusers unix password sync = Yes log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 invalid users = root hosts allow = 192.168.1., 192.168.0., 127. [homes] comment = %u Home Directory path = /home/%u read only = No browseable = No [public] comment = Public path = /shares/public valid users = @public
Hi, M Azer schrieb:> ERROR: the 'unix password sync' parameter is set and the 'passwd program' > () cannot be executed (error was No such file or directory). ERROR: the > 'passwd program' () requires a '%u' parameter.The default value for the parameter "passwd program" is passwd program = /bin/passwd Maybe your passwd program is located somewhere else, then you have to set this parameter to its location. Best regards Marc -- Marc Muehlfeld (Leitung Systemadministration) Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost Lochhamer Str. 29 - D-82152 Martinsried Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78 http://www.medizinische-genetik.de
On Wed, 2006-11-22 at 14:00 -0500, M Azer wrote:> Hello all, > > I am using samba 3.0.10 on redhat. I am getting the following error when i > run "testparm" eventhough i have a "smbpasswd" file. > > [root@localhost samba]# testparm > Load smb config files from /etc/samba/smb.conf > Processing section "[homes]" > Processing section "[public]" > Loaded services file OK. > ERROR: the 'unix password sync' parameter is set and the 'passwd program' () > cannot be executed (error was No such file or directory). > ERROR: the 'passwd program' () requires a '%u' parameter. > Server role: ROLE_STANDALONE > > > # Global parameters > [global] > workgroup = ITGROUP > netbios name = ITBOX > server string = Samba Test Server > smb passwd file = /etc/samba/smbpasswd %u > username map = /etc/samba/smbusers > unix password sync = Yes > log file = /var/log/samba/%m.log > max log size = 50 > socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 > idmap uid = 16777216-33554431 > idmap gid = 16777216-33554431 > invalid users = root > hosts allow = 192.168.1., 192.168.0., 127.Adding the following 2 lines to [global] should fix it: passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew \sUNIX\spassword:* %n\n *password\supdated\ssuccessfully* .
> I tried /bin/passwd but didn't work - ThanksHave you just tried or did you look if your passwd programm is really located in /bin? Maybe its in /usr/bin. Try which passwd to find it, when it`s located in your path variable. -- Marc Muehlfeld (Leitung Systemadministration) Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost Lochhamer Str. 29 - D-82152 Martinsried Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78 http://www.medizinische-genetik.de