Operating System - HP-UX
1850915 Members
3100 Online
104056 Solutions
New Discussion

passwd compat mode new UID

 
SOLVED
Go to solution
jerry1
Super Advisor

passwd compat mode new UID

I am trying to use nsswitch.conf
passwd compat

So that I can control logins via NIS passwd
map. But the original host /etc/passwd
has different UID than is in NIS passwd map
for that user account. When entering:

+user1::100:-24::/home/user1:/usr/bin/sh

In local /etc/passwd file. user1 is still UID
of entry in NIS passwd file 200.

How can I change the behavior to use a
different UID is is this not possible?
If not then I will have to search and chmod
all user1 files to be NIS UID on local systems
not already bound to NIS yet.
3 REPLIES 3
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: passwd compat mode new UID

That dog won't hunt; the whole idea of NIS is to unify the UID's and GID's across all the platform. This is the first task that you do in setting up NIS.
If it ain't broke, I can fix that.
jerry1
Super Advisor

Re: passwd compat mode new UID


Unfortunately, These systems are Legacy
and have never been bound to NIS. Someone
was maintaining local user accounts(because
they did not know what NIS is/does) and
as usual it is being dumped in my lap for
cleanup.
jerry1
Super Advisor

Re: passwd compat mode new UID


Unfortunately, These systems are Legacy
and have never been bound to NIS. Someone
was maintaining local user accounts(because
they did not know what NIS is/does) and
as usual it is being dumped in my lap for
cleanup.

I will only be using the passwd entry in
nsswitch.conf. Everthing else remains local.
It is to manage the passwords. Tired of
resetting users passwords on each box
everytime they forget it or it expires.