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

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

Post by Seonil Cho » Tue, 31 Mar 1998 04:00:00



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.


 
 
 

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

Post by Kyle McDonal » Tue, 31 Mar 1998 04:00:00



> 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.             ^^^^^^^^^^^^^

        What does your nsswitch.conf on the server look like?

        If I were you I would delete all of the users from
        /etc/passwd and /etc/shadow which were not put there
        by the solaris install program.

        Put them all in NIS+

        Then It won't matter if you change your password on the
        server or client. Only the NIS+ table will get updated
        (That's all that needs to be updated)

        Of course this assumes you have nisplus before files in
        your nsswitch.conf on the server. I assume it's already
        that way on the clients if it is working.

        Once you start using NIS+ the files should become irrelevant.

                -Kyle

--
                                   _
-------------------------------ooO( )Ooo-------------------------------
Kyle J. McDonald                 (o o)                 Systems Analyst/
Northeastern University          |||||          Applications Programmer

360 Huntington Ave. 230SN        \\\//          voice:    (617)373-3361
Boston MA 02115                  (o o)            fax:    (617)373-8504
-------------------------------ooO(_)Ooo-------------------------------

 
 
 

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

Post by diamond.te » Wed, 01 Apr 1998 04:00:00


Quote:> 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.

Do a man on passwd. But the nsswitch.conf under /etc  must have the line

 passwd: files nisplus
or
passwd: files nis   for those using nis

you  need to look at the passwd -r  option for changing your local passwd.

also do a man on nispasswd to get more info.
hope this helps.

> Seonil Choi.



------------------------------------------------------------------
              Hungry for NEWSGROUPS??? USE feedME.ORG            
         Read and Post to 30,000 groups through feedME.ORG        
     FREE  FREE  FREE  http://www.feedME.ORG  FREE  FREE  FREE    
------------------------------------------------------------------
 
 
 

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

Post by Bill Arman » Sat, 04 Apr 1998 04:00:00


Try using nispasswd



: 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.
:

:
:
:
:

 
 
 

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

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!

2. Makefile for NCSA Mosaic 2.4 under Linux 1.1.19

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

4. Prevent the remote dial-in server dropping out the line with dip?

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

6. Changing root userid ....how hard can it be?

7. /etc/passwd & /etc/security/passwd

8. UPS and linux....

9. Q: Propagating /etc/shadow to NIS+ passwd table

10. NIS+ users can read shadow from nis+ passwd table

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

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

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