Can you help me with this issue ? I cannot change user´s password with
root account...
root@solaris001 # passwd john
Password:
passwd: Sorry, wrong passwd
Permission denied
root@solaris001 # id
uid=0(root) gid=0(root)
I think passwd is intended for use by the user. If you want to change
it as root, use one of the admin tools.
--
The e-mail address in our reply-to line is reversed in an attempt to
minimize spam. Our true address is of the form che...@prodigy.net.
Show us the permissions/ownership of /etc/passwd and /etc/shadow
They should be:
-rw-r--r-- 1 root root 890 Jun 28 2007 /etc/passwd
-r-------- 1 root sys 526 Jun 28 2007 /etc/shadow
-r
Also, post the output of:
uname -a
cat /etc/release
Also, post the output for:
which passwd
:)
-r
Changed /etc/pam.conf lately?
-Mike
root@solaris001 # ls -l /etc/shadow
-r-------- 1 root sys 1082 May 5 17:20 /etc/shadow
root@solaris001 # which passwd
/usr/bin/passwd
root@solaris001 # uname -a
SunOS solaris001 5.8 Generic_117350-43 sun4u sparc SUNW,Sun-Fire
root@solaris001 # cat /etc/release
Solaris 8 2/02 s28s_u7wos_08a SPARC
Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
Assembled 18 December 2001
root@solaris001 # ls -l /etc/pam.conf
-rw-r--r-- 1 root sys 2465 Dec 9 07:18 /etc/pam.conf
root@solaris001 #
"NIS server not responding"
"transport level create failure for domain"
"RPC: Program not registered"
"can't get master for passwd map"
have you fixed those yet?
This problem is in another sun machine...
I think it wants John's current password!! If you give it that, it
should prompt you for a new password.
If you are changing the password because John forgot it, you will need
to clear the password in /etc/passwd and /etc/shadow.
Could you tell me how clear a password in this 2 files ?
have you checked passwd & shadow have same nr. of lines ?
# wc -l /etc/passwd /etc/shadow
30 /etc/passwd
30 /etc/shadow
60 total
/Jorgen
See man vipw.
You will also need to use the program that updates /etc/shadow; my
failing memory will not turn up the name of this program.
Your memory is fine. 'vipw' edits passwd first, then asks you if
you want to also edit the shadow file. There is no separate
command. (There is however a 'vigr' command to edit /etc/group
and /etc/gshadow files.)
-Wayne
> I think passwd is intended for use by the user. If you want to change
> it as root, use one of the admin tools.
"passwd" is one of the admin tools!
--
Rich Teer, SCSA, SCNA, SCSECA
CEO,
My Online Home Inventory
URLs: http://www.rite-group.com/rich
http://www.linkedin.com/in/richteer
http://www.myonlinehomeinventory.com
> Can you help me with this issue ? I cannot change user´s password with
> root account...
Is john a local user? Root can't change a remote user's password
(at least, not without some additional authentication).
I think it is asking for root's password. Are you using CA's eTrust
Access Control or something similar?