Date: Thu, 5 Sep 2002 00:15:55 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "Brian T. Schellenberger" <bts@babbleon.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: passwd: Permission denied Message-ID: <20020904231555.GC28529@happy-idiot-talk.infracaninophi> In-Reply-To: <200209041755.24531.bts@babbleon.org> References: <200209041755.24531.bts@babbleon.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Sep 04, 2002 at 05:55:24PM -0400, Brian T. Schellenberger wrote:
> 
> I have a user account that can't change its own password.  If it tries, 
> it gets:
> 
> passwd: Permission denied
That usually indicates an attempt by an ordinary non-privileged user
to change the password of another user.
When you cloned the account did you perhaps not give it a unique UID
number?  This snippet will print out how often each UID number is
mentioned in the master.passwd file:
    awk -F: '{ print $3 }' < /etc/master.passwd | sort -n | uniq -c
It can also occur if you remove the SUID bit from /usr/bin/passwd or
mount /usr nosuid, but then no one other than root would be able to
change passwords.
	Cheers,
	Matthew
-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
                                                      Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020904231555.GC28529>
