1849466 Members
6514 Online
104044 Solutions
New Discussion

Re: NIS root password

 
Starrynight_1
Advisor

NIS root password

Hello everyone

I have 2 servers with NIS installed. I need to have the master and the client with two different passwords.
I can change the password of the master (from the master and from the server) but I can't change the clients password...
I don't understand much about NIS as you can see....

Any help out there?

Thanks

SN
9 REPLIES 9
A. Clay Stephenson
Acclaimed Contributor

Re: NIS root password

Hi:

Rule Number One: NEVER EVER use NIS to define the root passwd. You will end up with a client that you can't login to.

The normal practice is to leave a few critical entries in the passwd file of each NIS client and then add the '+' entry to the end of the client passwd file for all other users.


You can use other scripting methods to change the root passwd's on remote system but NIS is a very bad idea for root.
If it ain't broke, I can fix that.
Sanjay_6
Honored Contributor

Re: NIS root password

Hi,

you'll have to change the root password of the nis slave server by logging on the nis slave server. The system id passwords are different on both the servers are are not managed by NIS. The user passwords are common on both the servers are are managed by nis.

Hope this helps.

Regds
S.K. Chan
Honored Contributor

Re: NIS root password

Totally agree with Clay on this. Root password should NOT be included in your master NIS paswword file.
Krishnan Viswanathan
Frequent Advisor

Re: NIS root password

Starry night :

Are you trying to change a user's passwd or root's passwd ?

If you want to change just a user's passwd, just change it on one of the clients, it will automatically update the NIS master as well. (if your NIS configurations are all set properly)
If you face issues (like prompting for old passwd even when you are root) let me know

Krishnan
pap
Respected Contributor

Re: NIS root password

Hi,

1. For root password changes you have to login to NIS server and use passwd command for it.

2. To change client password, you have to login as a user from any of the NIS client machine and then use yppasswd command.

3. You can also change NIS user password by logging in as root on NIS server and giving follwing command

# yppasswd "username"

Thanks,

-Piyush
"Winners don't do different things , they do things differently"
Starrynight_1
Advisor

Re: NIS root password

Hi Krishnan

I am prompt to the old password even being root... if I issue passwd command in the client I end up changing the password of the master server, and that??s not what I want...
conclusion: I am not being able to change the clients password, on both servers I change the masters password.

I hope you can help me....

SN
Umang Bhavsar
Occasional Advisor

Re: NIS root password

Remove the entry for root on master server whichever file set on /etc/Makefile. Then it would not prompt you for the old password. Assoign the new password using yppasswd. Hope that will help
Umang
James Randall
Frequent Advisor

Re: NIS root password

To change the root password on the SLAVE system (or client) you can do the following:

1) Log onto the slave system (or client) as root
2) passwd -r files

It will ask you for the new password. (You should not be prompted for the old password)

James
No news is good news
Kevin Wright
Honored Contributor

Re: NIS root password

remove root from your master password map ASAP, re-make the map.. What do you have in /etc/nsswitch.conf for passwd
passwd files nis

passwd -r file root