Account problem Solaris 8 From time to time, I see some strange pw things when handling accounts.
For instance on an E250 box with the latest Sol-8 installed from scratch
with the latest Patch cluster (as of March '04).
I create an account, and when trying to change the account password as
root I get:
root@host:/# >useradd -d /home/test/ test
root@host:/# >
root@host:/# >passwd test
Password:
passwd: Sorry, wrong passwd
Permission denied
We don't use NIS at all, /etc/nsswitch.conf is set up with:
passwd: files
The file attributes for /etc/passwd and /etc/shadow are:
-r--r--r-- 1 root sys 616 May 4 10:09 /etc/passwd
-r-------- 1 root sys 375 May 4 10:09 /etc/shadow
The /etc/passwd entry is:
test:x:105:1::/home/test/:/bin/sh and the /etc/shadow entry is:
test:*LK*:::::::
Now if I remove *LK*: from /etc/shadow, I can change the password, but
if I try changing it again I get permission denied. Nothing turns up in
the logs and this is extremely annoying (although I have the
aforementioned workaround) because I can't figure out what's wrong.
Anyone has an idea?
--
Stig Bull
| remove .no.spam from my email address to reply by mail |
No animals were hurt or killed in the process of creating this
electronic message. To reduce download time, this message is made of
100% recycled bytes. |