Date: Sun, 16 Jun 2002 15:48:05 -0700 (PDT) From: Dan Mahoney <freebsdbugs@gushi.org> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/39382: Passwd will not work when root su's into a user. Message-ID: <200206162248.g5GMm5Pf014221@www.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 39382 >Category: misc >Synopsis: Passwd will not work when root su's into a user. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jun 16 15:50:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Dan Mahoney >Release: 4.5-STABLE >Organization: Gushi Systems >Environment: FreeBSD prime.gushi.org 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Apr 19 01:20:11 EDT 2002 root@temporary.ezzi.net:/usr/src/sys/compile/PRIME45 i386 >Description: When root su's down to another account, even using -l to simulate a full login, they are unable to try to use passwd (as the user) to change their password, because passwd apparently checks realuid, and not effectiveuid. This also breaks usermin, which runs as a normal user, and has a password change module that uses passwd. >How-To-Repeat: As root, su -l to a user, then type passwd. You will get a "permission denied" error. >Fix: Always use passwd -l $username, or could someone submit a patch for passwd to correct this? >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206162248.g5GMm5Pf014221>