Operating System - HP-UX
1831213 Members
2700 Online
110021 Solutions
New Discussion

change root password in NIS sever

 
SOLVED
Go to solution
j773303
Super Advisor

change root password in NIS sever

Does anyone has the experience how to change the NIS server root passwd. I got the below err msg. Thanks.

#yppasswd root
Invalid login name.
Hero
5 REPLIES 5
Robert-Jan Goossens
Honored Contributor

Re: change root password in NIS sever

Hi,

Normaly the root user does not have a nis entry. Login in on the NIS server and change the root password with the passwd command.

Regards,
Robert-Jan
Massimo Bianchi
Honored Contributor

Re: change root password in NIS sever

Hi,
I agree wit Robert-Jan.

Usually root is local, otherwise you could not be ablo to login when booting without network :)

So you have to change the password locally on each server.

Regards,
Massimo
j773303
Super Advisor

Re: change root password in NIS sever

Why it got the below message ? Is passwd can change root password ? Thanks.

#passwd root
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
Hero
Hoefnix
Honored Contributor
Solution

Re: change root password in NIS sever

Hi,

I think you set-up a wrong /etc/nsswitch.conf file. Check the examples like /etc/nsswitch.nis.

I assume you should use: passwd files nis

Ans indead like others mentioned root should be in the local passwd file.

HTH,
Peter Geluk

Robert-Jan Goossens
Honored Contributor

Re: change root password in NIS sever

Think Peter is right,

Check this doc from the ITRC database or post your /etc/nsswitch.conf

Document description: passwd: Supported configurations for passwd management
Document id: USECKBRC00009368

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063248851

Regards,
Robert-Jan

Ps. keep some extra sessions op when you change your nsswitch.conf. :-)