Operating System - HP-UX
1836798 Members
3057 Online
110110 Solutions
New Discussion

NIS problem on Slave server.

 
Jatinder Cheema
New Member

NIS problem on Slave server.

Hi,

Strange one, I can create a new user on the master, push the files out to slave and clients. On the clients I am able to su to the users account. However on the slave i am unable, the error is stating user id unknown. However when you run a ypcat passwd on the slave you can see the user has an entry. The home dir is created on the slave however the uid(numerical) is shown instead of the users name. The slave is not using a nsswitch.conf file and nslookup uses the master server to search hosts successfully.

Any ideas/pointer?

All slave proccesses are running and existing users can log in.

Thanks

Jat
M Power is for life, not just Christmas.
3 REPLIES 3
Robert-Jan Goossens
Honored Contributor

Re: NIS problem on Slave server.

Zeev Schultz
Honored Contributor

Re: NIS problem on Slave server.

When you run ypcat on the slave are you bound
to the slave itself or another slave/master?
It can be that passwd map wasn't propagated yet
to the slave you're bound to or in-the-middle of update.It can also be that your clients are
bound to different slave or to master itself.
Another point - what do you mean slave isn't
using nsswitch.conf?For lookups to use master,should be "passwd: nis ...".And any user
behaviour on slave (lookups etc) is up to NIS
CLIENT configuration on the slave IMHO.

Regards

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Jatinder Cheema
New Member

Re: NIS problem on Slave server.

Hi All,

Sorry its solved, what had happened was that the masters config was copied over, /etc/passwd/ was infact for the master server, it was missing the +::0:0::: string at the end of the file. So it was infact looking at the local passwd file only.

Thanks for all the speedy help.

Jat
M Power is for life, not just Christmas.