Operating System - HP-UX
1833382 Members
3711 Online
110052 Solutions
New Discussion

Can't update passwd using NIS

 
Richard Barcellano_1
Occasional Advisor

Can't update passwd using NIS

Hi,

I added a user in passwd in the NIS master and I tried updating NIS by /var/yp/ypmake. But whenever I do a ypcat hosts I do not see the new user in the NIS master although I can see it in /etc/passwd.

Can someone please help me solve the problem.

Thanks.
Change is the world's constant
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Can't update passwd using NIS

how about yppush?

Maybe you need to push out the master password file.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
steven Burgess_2
Honored Contributor

Re: Can't update passwd using NIS

Hi Richard

Can I confirm that you are actually doing a ypcat passwd as opposed to a ypcat hosts as mentioned in your question.

If it's a typo then further investigation is needed

When you update the password file do you

cd /var/yp
make passwd

Are you on the master,slave or client when you attempt to view the new passwd file ?

Have you checked syslog , dmesg for any errors at the time of making the push ?

There is one solution to a similar problem below

There is a possibilty that ypxfr is confused, because copies of the new map do not exist on one of your NIS slaves. You must manually copy the maps. This can be done by copying /var/yp/`domainname`/map.* from the master to /var/yp/`domainname` on each of the slaves, using either rcp or ftp.

HTH

Steve
take your time and think things through
steven Burgess_2
Honored Contributor

Re: Can't update passwd using NIS

Hi

Have a read through this doc also

http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&admit=-938907319+1063527689017+28353475&docId=200000062922437

HTH

Steve
take your time and think things through
Richard Barcellano_1
Occasional Advisor

Re: Can't update passwd using NIS

Hi,

I apologize for the confusion.

I am trying to update passwd and not hosts.

Change is the world's constant
Richard Barcellano_1
Occasional Advisor

Re: Can't update passwd using NIS

Hi Steve,

I did ypmake in NIS master but when I do ypcat passwd in NIS master I don't see the new user I created.

For example,
In /etc/passwd a user is present but when I do ypcat passwd I don't see user a.

I don't see any map file/directory in /var/yp/abc/map.* in NIS master.

May I please know how to I update ypcat passwd of the NIS master so that it will be the same as its own /etc/passwd.

Thank you in advance.

Change is the world's constant
Richard Barcellano_1
Occasional Advisor

Re: Can't update passwd using NIS

Hi,

We were able to solve the problem by reconfiguring the NIS in master and slave.

Thanks.
Change is the world's constant