Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

passwd -> permission denied

1,201 views
Skip to first unread message

apogeus...@gmail.com

unread,
May 20, 2008, 2:22:35 PM5/20/08
to
Hi:

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)

CJT

unread,
May 20, 2008, 2:35:14 PM5/20/08
to

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.

Robb

unread,
May 20, 2008, 2:57:39 PM5/20/08
to

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

Robb

unread,
May 20, 2008, 2:59:07 PM5/20/08
to
On May 20, 11:22 am, apogeusiste...@gmail.com wrote:

Also, post the output of:

uname -a

cat /etc/release

Robb

unread,
May 20, 2008, 3:00:47 PM5/20/08
to
First, I know that it's lame that I didn't think of all this before
posting the first two qustions... :)

Also, post the output for:

which passwd

:)

-r

Mike Marshall

unread,
May 20, 2008, 2:35:22 PM5/20/08
to
apogeus...@gmail.com writes:
>root@solaris001 # passwd john
>Password:
>passwd: Sorry, wrong passwd
>Permission denied

Changed /etc/pam.conf lately?

-Mike

apogeus...@gmail.com

unread,
May 20, 2008, 3:57:21 PM5/20/08
to
On May 20, 3:35 pm, Mike Marshall <hub...@clemson.edu> wrote:
root@solaris001 # ls -l /etc/passwd
-rw-r--r-- 1 root sys 2128 Nov 21 2007 /etc/passwd

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 #

Oscar del Rio

unread,
May 20, 2008, 4:18:09 PM5/20/08
to
In your previous thread you posted lots of NIS errors.

"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?

apogeus...@gmail.com

unread,
May 20, 2008, 4:24:55 PM5/20/08
to

This problem is in another sun machine...

Richard B. Gilbert

unread,
May 20, 2008, 6:37:44 PM5/20/08
to

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.

apogeus...@gmail.com

unread,
May 20, 2008, 6:56:42 PM5/20/08
to
On 20 maio, 19:37, "Richard B. Gilbert" <rgilber...@comcast.net>
wrote:

Could you tell me how clear a password in this 2 files ?

Jorgen Moquist

unread,
May 20, 2008, 7:11:45 PM5/20/08
to

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

Richard B. Gilbert

unread,
May 20, 2008, 7:16:25 PM5/20/08
to

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.

Wayne

unread,
May 20, 2008, 7:33:27 PM5/20/08
to
Richard B. Gilbert wrote:
>> Could you tell me how clear a password in this 2 files ?
>
> 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

Rich Teer

unread,
May 21, 2008, 10:22:20 AM5/21/08
to
On Tue, 20 May 2008, CJT wrote:

> 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

Rich Teer

unread,
May 21, 2008, 10:23:48 AM5/21/08
to
On Tue, 20 May 2008, apogeus...@gmail.com wrote:

> 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).

Emerson Seiti Takahashi

unread,
May 22, 2008, 11:03:31 AM5/22/08
to

I think it is asking for root's password. Are you using CA's eTrust
Access Control or something similar?

0 new messages