[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
password:

system> whoami
test
system> ./smbpasswd
Old SMB password:
New SMB password:
Retype new SMB password:
machine 127.0.0.1 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
for 
them).

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



My server configuration is:

# Global parameters
[global]
 workgroup = IPJ
 netbios name = FILESERVER
 server string = "Fileserver"
 interfaces = 192.168.4.231, 127.0.0.1
 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
 socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=4096 SO_SNDBUF=4096
 name cache timeout = 60
 logon drive = p:
 os level = 255
 preferred master = Yes
 domain master = Yes
 invalid users = root
 hosts allow = 192.168.4. 192.168.4.255
 hosts deny = ALL
 hide unreadable = Yes

[homes]
 comment = Home Directories
 read only = No
 create mask = 0600
 browseable = No

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


Thank You
Soroush Mosavati



More information about the samba mailing list