how to keep the network passwd and /etc/passwd consistence in nis+

how to keep the network passwd and /etc/passwd consistence in nis+

Post by Yulong Zh » Sat, 19 Apr 1997 04:00:00



Dear Pros:

I have a simple question about nisplus,
in the nsswitch.conf, I have passwd: files nisplus

for this situation:
if in one machine, there is a user entry inside the /etc/passwd and
passwd.org_dir, but there password is different.

this time the network passwd will not work, the passwd in the /etc/shadow
will work.

now what I try to do , is how to make them as the same. even when user
change their passwd, my nisplus server will also update /etc/passwd /etc/shadow.

by the way, I don't want to change the entry in nsswitch.conf to
passwd nisplus, why I try to do this, in case nisplus mesh up, I still
can get it back from the file.

 thanx alot!

 
 
 

how to keep the network passwd and /etc/passwd consistence in nis+

Post by Fletcher.Gl.. » Sat, 19 Apr 1997 04:00:00


If you're using nis+ you should not have duplicate users in the
local passwd file.



>Dear Pros:

>I have a simple question about nisplus,
>in the nsswitch.conf, I have passwd: files nisplus

>for this situation:
>if in one machine, there is a user entry inside the /etc/passwd and
>passwd.org_dir, but there password is different.

>this time the network passwd will not work, the passwd in the /etc/shadow
>will work.

>now what I try to do , is how to make them as the same. even when user
>change their passwd, my nisplus server will also update /etc/passwd /etc/shadow.

>by the way, I don't want to change the entry in nsswitch.conf to
>passwd nisplus, why I try to do this, in case nisplus mesh up, I still
>can get it back from the file.

> thanx alot!



 
 
 

how to keep the network passwd and /etc/passwd consistence in nis+

Post by Mario Klebsch DG1 » Tue, 22 Apr 1997 04:00:00



>now what I try to do , is how to make them as the same. even when user
>change their passwd, my nisplus server will also update /etc/passwd /etc/shadow.

This is not the way, NIS+ works. NIS+ (unlike YP) is not based on the
files in /etc. Although the NIS+ tables can be populated from the
files in /etc, it does not have to and I do not recommend doing so.

For each user, you have to decide, wether this user is stored in the
NIS+ tables or in the files in /etc. Storing a user in both (NIS+ and
files) often is the reason for inconcistencies.

If you want to have a fallback for the case of loosing your NIS+
database, you can use a crontab entry to regulary dump your NIS+
tables to files with nisaddent -d.

73, Mario
--

Institut fuer Robotik und Prozessinformatik der TU Braunschweig
Hamburger Strasse 267, 38114 Braunschweig, Germany

 
 
 

1. How to keep consistancy between /etc/passwd and NIS+ passwd table.

Dear all,

I installed NIS+ over three machines  (one of them became NIS+ server
and two are NIS+ clients) in which Solaris 2.6 is running.

Regarding passwd, when I change my password using "passwd" in NIS+
server, it seems to me that /etc/shadow  and NIS+ password table are
updated.                      ^^^^^^^^^^^^^^
However, when I change my password in NIS+ client,  it seems that only
NIS+ password table is updated not /etc/shadow in NIS+
server.             ^^^^^^^^^^^^^

Thus when I change my password in NIS+client and log on to NIS+ server,
it does not work with new password but old password.

I would like to know how to maintain this /etc/shadow and NIS+ passwd
table.

Thank you.

Seonil Choi.


2. Need help with ipfwadm and two ethernet cards

3. Convert NIS passwd back to standard /etc/passwd & /etc/shadow

4. apache start up error: shmctl() could not set segment

5. /etc/passwd & /etc/security/passwd

6. Linux with 4 gb memory

7. NIS Master - why keep everything in /etc/{passwd,group} as well

8. Programing-HOWTO & Guide ???

9. passwd (NIS): Couldn't change passwd/attributes for joeblogg

10. SCO OS5 + NIS - /etc/passwd + /etc/group

11. root passwd and /etc/passwd in linux single mode

12. solaris 9, NIS, passwd.adjunct break passwd cmd

13. Why doesn't passwd/yppasswd update NIS passwd maps?