[6642] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Stupid passwd tricks: passwd changes wrong user's password

daemon@ATHENA.MIT.EDU (Chris Evans)
Fri Nov 29 07:32:10 1996

Date: Fri, 29 Nov 1996 12:30:20 +0000 (GMT)
From: Chris Evans <chris@ferret.lmh.ox.ac.uk>
To: redhat-list@redhat.com
In-Reply-To: <Pine.LNX.3.95.961129031814.32374B-100000@underground.error.net>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com



On Fri, 29 Nov 1996, IO ERROR wrote:

> Whenever I su to root, and execute the "passwd" command, it reports that it
> changed the password, and that all authentication tokens were updated
> successfully, but instead of changing the root passwd, it changes the passwd of
> the user I su'd from!  This is definitely not the behavior I'm accustomed to.
> (The workaround for this is to type "passwd root".) 

This is intentional behaviour if you are doing just "su" or "su root". You
need to use "su -" or "su - root", the - sign simulates a new login
session, setting a few environment variables that are important.

Chris.


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post