LinuxQuestions.org
Help answer threads with 0 replies.
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 07-20-2010, 02:57 PM   #1
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
A question about users changing passwords in a NIS environment...


I setup NIS (Yellow pages) and it works great. I setup the home directory to be shared, so matter where a user logs in he will always have the same home folder. Now I notice that when I add a new user from the server that is running NIS, I have to run
Code:
/usr/lib/yp/ypinit -m
to rebuild the user and passwd DBs.

However, what if a user is logged in and runs 'passwd' and changes his own password. It doesn't seem to save the changes. I tried running
Code:
/usr/lib/yp/ypinit -m
but the old password remained. What's the best way to deal with this? Can users change their passwords in a NIS environment if so, how?

Last edited by trist007; 07-20-2010 at 03:48 PM.
 
Old 07-20-2010, 08:19 PM   #2
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
Ok, found out that I had to change the password on the server that is hosting the NIS, which of course has it's /etc/passwd & /etc/shadow files populated. I then just ran a /usr/lib/yp/ypinit -m to rebuild the DBs. Then it worked like a charm. However, what if a user wanted to change his passwd after a logging into a server that is not hosting NIS? I just tested it and when the user changes the password it writes to the server's passwd and shadow files instead of the passwd and shadow files of the NIS server. How can I account for that? Where any passwd changes on a server get updated on the shadow and passwd files on a NIS server?

Is there a built-in feature tied with NIS that can accomplish this, or should I go old-school and rsync it?
 
Old 07-24-2010, 07:29 AM   #3
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
bump
 
Old 07-24-2010, 07:57 AM   #4
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
In addition to the other question I had, I also want to know if this is suppose to happen. Say the NIS domain is x.domain.com and I am on y.domain.com. So I setup yp.bind and yp.xfer and also setup my /etc/yp.conf to have x.domain.com. In addition to that it seems that I have to set my 'nisdomainname' to x.domain.com for Yellow Pages to work. However, by setting nisdomainname to x.domain.com it also changes the 'domainname' of y.domain.com to x.domain.com. It this suppose to happen. It hasn't broken my services which use my /etc/hosts file but still I was just wondering.
 
Old 08-13-2010, 07:05 PM   #5
trist007
Senior Member
 
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Original Poster
Rep: Reputation: 69
I've been working on Yellow Pages for a while now. I am finally able to really understand it. You can change passwords by using 'yppasswd' at the command line as a NIS user. yppasswd is what the NIS server runs as a listening process.
 
  


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
ldap question with users and plan text passwords tuxtutorials Linux - Server 2 03-21-2009 12:32 AM
NIS: NIS running but users not able to log in with NIS credentials outerspace Linux - Server 3 10-17-2007 08:51 AM
better NIS passwords !!! mlu Linux - Networking 3 07-27-2005 12:16 AM
chrooted users changing their passwords btmiller Linux - Security 2 07-16-2005 01:08 PM
NIS Passwords and CVS janky Linux - Networking 0 04-04-2005 03:40 PM


All times are GMT -5. The time now is 07:31 AM.

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