passwd -> permission denied

  • Follow


Hi:

Can you help me with this issue ? I cannot change user=B4s password with
root account...

root@solaris001 # passwd john
Password:
passwd: Sorry, wrong passwd
Permission denied

root@solaris001 # id
uid=3D0(root) gid=3D0(root)
0
Reply apogeusistemas 5/20/2008 6:22:35 PM

apogeusistemas@gmail.com wrote:
> 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)

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.
0
Reply CJT 5/20/2008 6:35:14 PM


apogeusistemas@gmail.com writes:
>root@solaris001 # passwd john
>Password:
>passwd: Sorry, wrong passwd
>Permission denied

Changed /etc/pam.conf lately?

-Mike
0
Reply Mike 5/20/2008 6:35:22 PM

On May 20, 11:22=A0am, apogeusiste...@gmail.com wrote:
> Hi:
>
> Can you help me with this issue ? I cannot change user=B4s password with
> root account...
>
> root@solaris001 # passwd john
> Password:
> passwd: Sorry, wrong passwd
> Permission denied
>
> root@solaris001 # id
> uid=3D0(root) gid=3D0(root)

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
0
Reply Robb 5/20/2008 6:57:39 PM

On May 20, 11:22=A0am, apogeusiste...@gmail.com wrote:
> Hi:
>
> Can you help me with this issue ? I cannot change user=B4s password with
> root account...
>
> root@solaris001 # passwd john
> Password:
> passwd: Sorry, wrong passwd
> Permission denied
>
> root@solaris001 # id
> uid=3D0(root) gid=3D0(root)

Also, post the output of:

uname -a

cat /etc/release
0
Reply Robb 5/20/2008 6:59:07 PM

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
0
Reply Robb 5/20/2008 7:00:47 PM

On May 20, 3:35=A0pm, Mike Marshall <hub...@clemson.edu> wrote:
> apogeusiste...@gmail.com writes:
> >root@solaris001 # passwd john
> >Password:
> >passwd: Sorry, wrong passwd
> >Permission denied
>
> Changed /etc/pam.conf lately?
>
> -Mike
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 #

0
Reply apogeusistemas 5/20/2008 7:57:21 PM

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?
0
Reply Oscar 5/20/2008 8:18:09 PM

On May 20, 5:18=A0pm, Oscar del Rio <del...@mie.utoronto.ca> wrote:
> 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?

This problem is in another sun machine...
0
Reply apogeusistemas 5/20/2008 8:24:55 PM

apogeusistemas@gmail.com wrote:
> 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)

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.
0
Reply Richard 5/20/2008 10:37:44 PM

On 20 maio, 19:37, "Richard B. Gilbert" <rgilber...@comcast.net>
wrote:
> apogeusiste...@gmail.com wrote:
> > Hi:
>
> > Can you help me with this issue ? I cannot change user=B4s password with=

> > root account...
>
> > root@solaris001 # passwd john
> > Password:
> > passwd: Sorry, wrong passwd
> > Permission denied
>
> > root@solaris001 # id
> > uid=3D0(root) gid=3D0(root)
>
> I think it wants John's current password!! =A0If 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 ?
0
Reply apogeusistemas 5/20/2008 10:56:42 PM

apogeusistemas@gmail.com wrote:
> On 20 maio, 19:37, "Richard B. Gilbert" <rgilber...@comcast.net>
> wrote:
>> apogeusiste...@gmail.com wrote:
>>> 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)
>> 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
0
Reply Jorgen 5/20/2008 11:11:45 PM

apogeusistemas@gmail.com wrote:
> On 20 maio, 19:37, "Richard B. Gilbert" <rgilber...@comcast.net>
> wrote:
>> apogeusiste...@gmail.com wrote:
>>> 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)
>> 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 ?

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.
0
Reply Richard 5/20/2008 11:16:25 PM

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
0
Reply Wayne 5/20/2008 11:33:27 PM

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
0
Reply Rich 5/21/2008 2:22:20 PM

  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

---559023410-1804928587-1211379740=:28863
Content-Type: TEXT/PLAIN; charset=iso-8859-1
Content-Transfer-Encoding: 8BIT

On Tue, 20 May 2008, apogeusistemas@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).

-- 
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
---559023410-1804928587-1211379740=:28863--
0
Reply Rich 5/21/2008 2:23:48 PM

On May 20, 3:22 pm, apogeusiste...@gmail.com wrote:
> Hi:
>
> Can you help me with this issue ? I cannot change user=B4s password with
> root account...
>
> root@solaris001 # passwd john
> Password:
> passwd: Sorry, wrong passwd
> Permission denied
>
> root@solaris001 # id
> uid=3D0(root) gid=3D0(root)

I think it is asking for root's password. Are you using CA's eTrust
Access Control or something similar?
0
Reply Emerson 5/22/2008 3:03:31 PM

16 Replies
1184 Views

(page loaded in 0.189 seconds)

Similiar Articles:


















7/20/2012 10:11:39 PM


Reply: