I sent the message below requesting helpful hints on why I was getting
"permission denied" when attempting to change a password in NIS. I got
many helpful replies (and one jerk).
Suggestions included:
1) use "yppasswd" or "nispasswd" (both behaved the same as "passwd")
2) make sure rpc.yppasswdd is running (it was)
3) make sure ypserv is running (it was)
4) make sure permissions are correct on relevant directories/files (they were)
5) references to assorted patches that either fixed or caused an identical
problem
6) rebuild the maps
In the end, I found that my rpc.yppasswd was being started incorrectly.
Without arguments, it uses a "PWDIR" of /var/yp (or maybe /etc). This
is the directory in which it expects to find the raw files, and it is not
where my raw files are located. When run with the correct -D option on
rpc.yppasswd, the problem was solved.
This doesn't explain why my ypstart file wasn't doing this correctly--it
attempts to determine the right directory argument to use. So I still
have some debugging to do, but at least I know the root cause.
Thanks to all who tried to help.
Lusty
----- Forwarded message from Lusty Wench -----
Subject: Can't change NIS password
To: sun-managers@sunmanagers.ececs.uc.edu
Date: Tue, 11 Jan 2000 09:54:00 -0800 (PST)
From: Lusty Wench <lusty@lusty.org>
I'm running NIS on Solaris 2.6 and get the following when attempting to
change any password:
> passwd
passwd: Changing password for mhanna
Enter login(NIS) password:
New password:
Re-enter new password:
passwd (NIS): Couldn't change passwd/attributes for mhanna
Permission denied
I can't do it as root, can't do it when I'm logged in as the user.
I've searched the archives and all the documentation I can find, but
haven't been able to find any hint of this particular issue. Any ideas?
Lusty
----- End of forwarded message from Lusty Wench -----
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:01 CDT