- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: NIS yppasswd cannot change password
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2010 03:17 AM
тАО04-28-2010 03:17 AM
NIS yppasswd cannot change password
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2010 04:07 AM
тАО04-28-2010 04:07 AM
Re: NIS yppasswd cannot change password
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 ,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2010 07:25 AM
тАО04-28-2010 07:25 AM
Re: NIS yppasswd cannot change password
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-28-2010 05:53 PM
тАО04-28-2010 05:53 PM
Re: NIS yppasswd cannot change password
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2010 12:16 AM
тАО04-29-2010 12:16 AM
Re: NIS yppasswd cannot change password
# passwd -r files -F /var/yp/etc/passwd khairy
It works like a charm. I shall close this threads. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2010 12:16 AM
тАО04-29-2010 12:16 AM