Operating System - HP-UX
1832104 Members
2894 Online
110038 Solutions
New Discussion

make passwd is not working

 
Sachin Patel
Honored Contributor

make passwd is not working

I have one master nis server and number of secondary servers.
We have passwd file on master. Whenever we change anything on passwd file we run /var/yp/make passwd command and it will make new map push maps to the secondary

From a week whenever I type make passwd it says
`passwd' is up to date
even if I have add new user or delete a line or touch a file. I even have reboot the server.
If I use make -u passwd it works fine.

I was on vacation for a month and can't change anything but I can's say about others.
/var/yp/Makefile is not been changed.

What should I look for now.

Thanks in advance
Sachin Patel
Is photography a hobby or another way to spend $
15 REPLIES 15
A. Clay Stephenson
Acclaimed Contributor

Re: make passwd is not working

Hi:

I suspect that the timestamps have become corrupt or invalid. On the master server, cd to /var/yp; cd to the domain directory, e.g. mydomain, rm *.time; cd /var/yp; make.

That should push all the maps.
If it ain't broke, I can fix that.
Sachin Patel
Honored Contributor

Re: make passwd is not working

Hi Clay
I did that too.
#cd /var/yp/domainame
#rm passwd.time
#make passwd (same error message and it did not create a new passwd.time file)

So I create passwd.time and run make passwd same error.


Sachin
Is photography a hobby or another way to spend $
Sachin Patel
Honored Contributor

Re: make passwd is not working

One more thing.
It is doing same with all other maps. like aliases, netgroup etc...

Sachin
Is photography a hobby or another way to spend $
Helen French
Honored Contributor

Re: make passwd is not working

Hi Sachin,

1)Check all your yp daemons if it running properly.

2)Check the syntax of rpc.yppasswdd.

3) Check entries in /etc/rc.config.d/namesvrs

HTH,
Shiju
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor

Re: make passwd is not working

Do you have copies of your maps in /var/yp ? That can be one reason why "make" fails.
Sachin Patel
Honored Contributor

Re: make passwd is not working

Hi Shiju,
All daemons are running.

I run make -d passwd and following are the last output.

Reading Makefile
setvar: B = -b noreset = 0 envflg = 0 Mflags = 040001
setvar: DIR = /etc noreset = 0 envflg = 0 Mflags = 040001
setvar: DOM = `domainname` noreset = 0 envflg = 0 Mflags = 040001
setvar: NOPUSH = "" noreset = 0 envflg = 0 Mflags = 040001
setvar: ALIASES = /etc/mail/aliases noreset = 0 envflg = 0 Mflags = 040001
setvar: YPDIR = /usr/sbin noreset = 0 envflg = 0 Mflags = 040001
setvar: YPDBDIR = /var/yp noreset = 0 envflg = 0 Mflags = 040001
setvar: YPPUSH = $(YPDIR)/yppush -v noreset = 0 envflg = 0 Mflags = 040001
setvar: MAKEDBM = $(YPDIR)/makedbm noreset = 0 envflg = 0 Mflags = 040001
setvar: REVNETGROUP = $(YPDIR)/revnetgroup noreset = 0 envflg = 0 Mflags = 040001
setvar: STDETHERS = $(YPDIR)/stdethers noreset = 0 envflg = 0 Mflags = 040001
setvar: STDHOSTS = $(YPDIR)/stdhosts noreset = 0 envflg = 0 Mflags = 040001
setvar: MKNETID = $(YPDIR)/mknetid noreset = 0 envflg = 0 Mflags = 040001
setvar: MKALIAS = $(YPDIR)/mkalias noreset = 0 envflg = 0 Mflags = 040001
setvar: PWFILE = $(DIR)/passwd noreset = 0 envflg = 0 Mflags = 040001
setvar: CHKPIPE = || ( echo "NIS make terminated:" $@ 1>&2; kill -TERM 0 ) noreset = 0 envflg = 0 Mflags = 040001
doname(passwd,0)
TIME(passwd)=1013023676
setvar: @ = passwd noreset = 0 envflg = 0 Mflags = 040001
setvar: @ = noreset = 0 envflg = 0 Mflags = 040001
look for explicit deps. 0
look for implicit rules. 0
`passwd' is up to date.
setvar: < = noreset = 0 envflg = 0 Mflags = 040001
setvar: * = noreset = 0 envflg = 0 Mflags = 040001

Can it be time y2k problem?
I have y2k patch installed.

Sachin Patel
Is photography a hobby or another way to spend $
A. Clay Stephenson
Acclaimed Contributor

Re: make passwd is not working

Since the make -u works this has to be a timestamp problem. Has anyone been playing with the date command in your absence. You need to check the datestamp on /etc/passwd and compare it to passwd.time. If someone had set the date forward and then back you would get all sorts of bizarre behavior.

If it ain't broke, I can fix that.
Sachin Patel
Honored Contributor

Re: make passwd is not working

Hi Clay,
I have consider that and that is why I have reboot the system. Does it clear things up?

#ls -laurt /etc/passwd /var/yp/domainname/passwd.time
-rw-r--r-- 1 root sys 0 Feb 11 12:54 /var/yp/domainname/passwd.time
-rw-r--r-- 1 root sys 35835 Feb 11 14:10 /etc/passwd

Still I have error.

Sachin
Is photography a hobby or another way to spend $
A. Clay Stephenson
Acclaimed Contributor

Re: make passwd is not working

I am making the assumption that /etc is you DIR setting in your makefile so that /etc/passwd is your passwd source. Also, 'domainname' is a very odd name for a domain. Is that your actual domainname?

Again, I would remove all the .time files and do dont recreate one simply cd to /var/yp and do a make. I doubt that rebooting will fix anything but it can't hurt.
If it ain't broke, I can fix that.
Sachin Patel
Honored Contributor

Re: make passwd is not working

Hi Clay,
Reboot is not fixing my problem. Domain name is hou-vdgc. passwd is in /etc.
I didn't recreate passwd.time when I run make passwd.It is not working yet.

Sachin Patel
Is photography a hobby or another way to spend $
Mohanraj Ramasamy
New Member

Re: make passwd is not working

This problem is due to trusted mode security implemented.

Do the following and it should help to solve the problem.

# pwconv
This will update passwd and shadow file with latest password information.

# /var/yp/make passwd

Now it will update the maps.

Let me know your feedback.

R.M.Raj
Sachin Patel
Honored Contributor

Re: make passwd is not working

We do not have shadow passwd or any kind of security. It is internal network.

Sachin
Is photography a hobby or another way to spend $
D. Jackson_1
Honored Contributor

Re: make passwd is not working

Have you tried cd /var/yp
./ypmake passwd
??
Sachin Patel
Honored Contributor

Re: make passwd is not working

Hi Jackson,
I try that too. No luck

Sachin
Is photography a hobby or another way to spend $
A. Clay Stephenson
Acclaimed Contributor

Re: make passwd is not working

Hi:

If I convert the timestamp displayed by your make, 1013023676, that converts to Wed. Feb 6 19:27:56 2002 UTC which does not match the timestamp of your ls -l's.

If it ain't broke, I can fix that.