LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-17-2013, 06:11 AM   #1
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Rep: Reputation: Disabled
change NIS user password


Hi

I have created an NIS server and user is nis1. need to change password for root and nis1 user. when try to change passwd for root, getting the following message and no passwd changed..

[root@server yp]# yppasswd
Changing YP password for root on server.
Please enter old password:
Sorry.

can anyone explain what is problem and how to fix this?

Thanks and Regards
 
Old 09-17-2013, 07:44 AM   #2
eklavya
Member
 
Registered: Mar 2013
Posts: 619

Rep: Reputation: 136Reputation: 136
Try
Code:
yppasswd root
or
Code:
passwd root
Are you still facing same problem?

Code:
Try using rpasswd
http://www.tldp.org/HOWTO/NIS-HOWTO/rpasswdd.html

Are you able to change password for your user?
Code:
sudo yppasswd nis1
Changing NIS account information for nis1 on ........
Please enter root password:
Changing NIS password for nis1 on ........
Please enter new password:
Please retype new password:

The NIS password has been changed on ........

Last edited by eklavya; 09-17-2013 at 07:49 AM.
 
Old 09-17-2013, 08:30 AM   #3
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Original Poster
Rep: Reputation: Disabled
Thanks for the update.

Passwd for root or user nis1 is not yet changed. getting the same output as above.

[root@server nis1]# sudo yppasswd nis1
Changing YP password for nis1 on server.
Please enter old password:
Sorry.
[root@server nis1]#

Is any idea what the actually issue here?
 
Old 09-17-2013, 09:49 AM   #4
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Usually, root is not in the NIS password database.

This is because it is a vulnerability to do so - NIS on its own is not all that secure. NIS with root is VERY insecure.
 
Old 09-18-2013, 12:02 AM   #5
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Original Poster
Rep: Reputation: Disabled
thanks Jpollard.

but nis1 user is in the NIS database so it should be change.but the state as the root user.
 
Old 09-18-2013, 08:58 AM   #6
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,661

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
Only if the old password is valid.

Now, if it accepted the change, but the new password doesn't seem to work... can be caused by having multiple slave NIS servers running, but updates have not yet been propagated to the slaves.

To set a users password, only the root user on the master server (not a slave server) should be able do it.
 
Old 09-18-2013, 11:34 PM   #7
boby.kumar
Member
 
Registered: Mar 2013
Posts: 92

Original Poster
Rep: Reputation: Disabled
only two one NIS server and client is here.

Thanks a lot Jpollard
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NIS users can't change own password vinotha Linux - Networking 1 06-30-2013 03:43 PM
How to force a user to change their NIS password at logon? synthol6 AIX 1 08-17-2010 08:47 PM
NIS vs Local account password change thllgo Linux - Server 2 07-17-2008 04:47 PM
NIS password change problem wahid111 Slackware 3 08-12-2006 02:12 AM
Can't change NIS Password lemay_jeff Linux - Networking 1 06-29-2004 02:48 PM


All times are GMT -5. The time now is 12:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration