Operating System - HP-UX
1751693 Members
5173 Online
108781 Solutions
New Discussion юеВ

Re: NIS yppasswd cannot change password

 
Khairy
Esteemed Contributor

NIS yppasswd cannot change password

Hi gurus,

i have this weird problem.

max003 - NIS master
max024 - NIS client

(1)Attempt to change passwd from both max024 & max003 failed. It always ask for previous password.
root@max024 # yppasswd khairy
Enter khairy's password:
New Password:
Re-enter new Password:
Permission denied

root@max024 # passwd -r nis khairy
Enter khairy's password:
New Password:
Re-enter new Password:
Permission denied

max003#yppasswd khairy
Changing password for khairy on NIS server
Old NIS password:
Sorry.

(2) max024 does communicate successfully with yppasswd daemon in max003

max003#tail -f /var/adm/yppasswdd.log
04.27 14:34:17 max003 pid=23118 /usr/lib/netsvc/yp/rpc.yppasswdd
khairy: bad passwd
04.27 14:53:56 max003 pid=23118 /usr/lib/netsvc/yp/rpc.yppasswdd
khairy: bad passwd
04.27 14:55:35 max003 pid=23118 /usr/lib/netsvc/yp/rpc.yppasswdd
khairy: bad passwd
04.28 15:27:47 max003 pid=23118 /usr/lib/netsvc/yp/rpc.yppasswdd
khairy: bad passwd
04.28 15:53:37 max003 pid=23118 /usr/lib/netsvc/yp/rpc.yppasswdd
khairy: bad passwd

(3) ypserv and other services are running in NIS Master
max003#ps -ef |grep ypserv
root 23107 1 0 Aug 20 ? 746:22 /usr/lib/netsvc/yp/ypserv

max003#rpcinfo -p
program vers proto port service
100000 4 tcp 111 rpcbind
100000 3 tcp 111 rpcbind
100000 2 tcp 111 rpcbind
100000 4 udp 111 rpcbind
100000 3 udp 111 rpcbind
100000 2 udp 111 rpcbind
100007 2 tcp 49152 ypbind
100007 2 udp 49153 ypbind
100007 1 tcp 49152 ypbind
100007 1 udp 49153 ypbind
100024 1 tcp 49153 status
100024 1 udp 49161 status
100021 1 tcp 49154 nlockmgr
100021 1 udp 49162 nlockmgr
100021 3 tcp 49155 nlockmgr
100021 3 udp 49163 nlockmgr
100021 4 tcp 49156 nlockmgr
100021 4 udp 49164 nlockmgr
100020 1 udp 4045 llockmgr
100020 1 tcp 4045 llockmgr
100021 2 tcp 49157 nlockmgr
100068 2 udp 49169 cmsd
100068 3 udp 49169 cmsd
100068 4 udp 49169 cmsd
100068 5 udp 49169 cmsd
100005 1 udp 54512 mountd
100005 3 udp 54512 mountd
100005 1 tcp 63108 mountd
100005 3 tcp 63108 mountd
100004 2 udp 811 ypserv
100004 2 tcp 812 ypserv
100004 1 udp 811 ypserv
100004 1 tcp 812 ypserv
100069 1 udp 817 ypxfrd
100069 1 tcp 818 ypxfrd
100009 1 udp 1023 yppasswdd
100028 1 tcp 827 ypupdated
100028 1 udp 828 ypupdated

Does any one have any idea why this happening? Any feedback on this is highly appreciated.
5 REPLIES 5
merieux
Frequent Advisor

Re: NIS yppasswd cannot change password

Hi ,

I see two problem :

1) you say
" (2) max024 does communicate successfully with yppasswd daemon in max003 "

But why , Is the yp process under the client are present ? Is it possible to to do an ypcat passwd into the client?

Can you try to start/stop the nis client ?

2 ) regarding "04.27 14:34:17 max003 pid=23118 /usr/lib/netsvc/yp/rpc.yppasswdd
khairy: bad passwd" message .

It seems that the nis passwd map is corrupt into the master . Can you rebuild the passwd map ?

Regards ,


Khairy
Esteemed Contributor

Re: NIS yppasswd cannot change password

hi merieux,

i believe you are right.

1) ypcat in max024 does give output.

root@max024 # ypcat -k passwd | grep khairy
khairy khairy:xJUVfZh4aBiDc,6.4U:43576:16846:Khairy NA,,,:/home/khairy:/usr/bin/tcsh

2) Rebuild password mapfile at max003 (master)
I will try to do this.

a) cd /var/yp
b) make a copy of passwd file
c) execute `make passwd`

thats it,right? Did i miss anything?

Rgds
Khairy
Esteemed Contributor

Re: NIS yppasswd cannot change password

hi all,

done this but it seems the passwd file is up to date.

max003# pwd
/var/yp/etc
max003# make passwd
`passwd' is up to date.

Any ideas?

i have remove the passwd file and try again
max003# make passwd
Make: Don't know how to make passwd. Stop.

That doesn't work either, so i copy back the backup passwd file and try but still the same like previous.

Any ideas?
Khairy
Esteemed Contributor

Re: NIS yppasswd cannot change password

i think i hit it good. The correct syntax would be :

# passwd -r files -F /var/yp/etc/passwd khairy

It works like a charm. I shall close this threads. Thanks!
Khairy
Esteemed Contributor

Re: NIS yppasswd cannot change password

answers in previous comments.