[Samba] users can not change pasword

soroush mosavati at dpiran.net
Sun May 30 05:36:40 GMT 2004

Following is permissions assigned to smbpasswd:

-rwxr-xr-x   1 root     system   smbpasswd

Following is what occurs when root attempts to change a user's password:

# smbpasswd test
New SMB password:
Retype new SMB password:
Password changed for user test
Following is what occurs when the user attempts to change their own

system> whoami
system> ./smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
machine rejected the password change : Error was : RAP86 : The specified password is invalid.
Failed to change password for test
User can access unix system via Samba when password is changed by root but 
cannot consistently change their own password (even after root changes it

Appreciate any assistance on how to allow users to change their own Samba 

My server configuration is:

# Global parameters
 workgroup = IPJ
 netbios name = FILESERVER
 server string = "Fileserver"
 interfaces =,
 obey pam restrictions = Yes
 lanman auth = No
 log level = 2
 log file = /var/log/samba/%I.log
 encrypt passwords =yes
 smb passwd file = /etc/samba/private/smbpasswd
 obey pam restrictions = yes
 passwd program = /usr/bin/passwd %u
 passwd chat = *old*password* %n\n *new*passsword* %n\n *Retype*new*password* %n\n *passwd*all*auth *token*updated
 unix password sync = Yes

 max log size = 1000
 max mux = 25
 max xmit = 4096
 time server = Yes
 change notify timeout = 10
 deadtime = 60
 keepalive = 600
 max disk size = 200
 name cache timeout = 60
 logon drive = p:
 os level = 255
 preferred master = Yes
 domain master = Yes
 invalid users = root
 hosts allow = 192.168.4.
 hosts deny = ALL
 hide unreadable = Yes

 comment = Home Directories
 read only = No
 create mask = 0600
 browseable = No

 comment = Temprorary file space
 path = /tmp
 read only = No
 guest ok = Yes

Thank You
Soroush Mosavati

More information about the samba mailing list