Change password for users

I am on SunOS SolarisServer 5.11 11.1 i86pc i386 i86pc , I am trying to change password for a user,but I get the following message.I cannot find any google help on the matter.can anyone help?

root@SolarisServer:~# passwd
passwd: Changing password for stain

Please try again

Please try again
Permission denied
root@SolarisServer:~# passwd smbuser

Please try again

Please try again
Permission denied
root@SolarisServer:~# 

Post output of:

grep passwd /etc/nsswitch.conf
1 Like

Passwd: files

Did you by any chance modify /etc/pam.conf recently?

Yes I did as per an instruction guide on how to configure smb server for Solaris 11

other password required pam_smb_passwd.so.1 nowarn

Remove that line from /etc/pam.conf and add this at the end of /etc/pam.d/other :

password required       pam_smb_passwd.so.1 nowarn
1 Like

That worked, Thank you !