1748116 Members
3451 Online
108758 Solutions
New Discussion юеВ

NIS password...

 
Jonathan Caplette_1
Super Advisor

NIS password...

Hi guys,

I've a little problem here, with my HP-UX 11 box.... When a user ask the system to change is password with the command "passwd" the system said "Changing password for on NIS server" and then ask for the Old NIS password... I use NIS for hosts, etc... but I don't want to use it on that machine for passwords, cause I need to have locally saved passwords....

I've added into my nsswitch.conf file those two lines:
passwd: files nis
group: files nis

But even with that it stay ask the users for an NIS password.... How can I tell the system to always take local passwd file instead of the NIS??

Thanks
Jonathan
5 REPLIES 5
Romy
Occasional Advisor

Re: NIS password...

Hi Jonathan,
try the passwd command with the option
"-r files" than it will work.
This means to change the passwd in the local
passwd file and not (as default) in nis passwd

regards
Romana
Romy
Jerome Baron
Respected Contributor

Re: NIS password...

Hi Jonathan,

If you never use passwd map in nis envirronement, you can remove this file in your nis configuration.

Regards,
Jerome
Zeev Schultz
Honored Contributor

Re: NIS password...

Remove "+" entry at the end of /etc/passwd.
Regards

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Steve Labar
Valued Contributor

Re: NIS password...

To remove NIS passwd from one station, you should remove the + from your /etc/passwd file on that station and /etc/nsswitch.conf should not refer passwd to nis, used files only.

Good Luck.

Steve
S.K. Chan
Honored Contributor

Re: NIS password...

Hi Jonathan,
Isn't this a done deal ? Your previous post seems to indicate that.
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf1145ec05a7ad711abdc0090277a778c,00.html