1833016 Members
2813 Online
110048 Solutions
New Discussion

passwd

 
SOLVED
Go to solution
Sritharan
Valued Contributor

passwd

Hi,
We have clustered(MCSG) server, when I try to change password on the server one of the server shows

prshq04:>passwd
Supported configurations for passwd management are as follows:
passwd: files
passwd: files ldap
passwd: files nis
passwd: files nisplus
passwd: compat
passwd: compat AND
passwd_compat: nisplus
prshq04:>

but another server is ok,I can change the password,I have checked the configuration on both server its same.

What should I do ???

Help Please

Thanks In Advance
Sri
Known is a drop...unknown is an ocean -> quote from a movie
4 REPLIES 4
Jeff Schussele
Honored Contributor
Solution

Re: passwd

Hi Sritharan,

Few things:

1) Check the /etc/nsswitch.conf & make sure the check order is correct i.e. files dns - whatever is the proper order for your system

2) check what passwd command is running
which passwd

3) check the integrity of the passwd file itself
pwck

4) if not using NIS make sure the user in question does not have a leading + symbol in their line in the passwd file.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Niraj Kumar Verma
Trusted Contributor

Re: passwd

Hi,

In your /etc directory you find three sample files of
nsswitch.conf

If you are using

NIS
# cp /etc/nsswitch.nis /etc/nsswitch.conf

FILES (no NIS/NIS+)
# cp /etc/nsswitch.files /etc/nsswitch.conf

NIS+
# /etc/nsswitch.nisplus /etc/nsswitch.conf

------
Check the passwd and group file
# pwck
# grpck

----
use

# /sbin/passwd

to change the password.

-Niraj
Niraj.Verma@philips.com
S.K. Chan
Honored Contributor

Re: passwd

The culprit is /etc/nsswitch.conf file. The "passwd" entry in that file MUST be resolved with "files" being the first source. If you have an entry like ..
passwd: nis files
for example then this would be the error you'll get. Change the order to such ..
passwd: files nis
so that passwd always resolve from local file first then only NIS.
S.K. Chan
Honored Contributor

Re: passwd

Previous related (close) thread that has similar problem ..

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xe3667d4cf554d611abdb0090277a778c,00.html