From owner-freebsd-bugs Sun Jun 16 15:52: 4 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7083637B414 for ; Sun, 16 Jun 2002 15:52:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5GMo1Z65098; Sun, 16 Jun 2002 15:50:01 -0700 (PDT) (envelope-from gnats) Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117]) by hub.freebsd.org (Postfix) with ESMTP id 11BEE37B40A for ; Sun, 16 Jun 2002 15:49:29 -0700 (PDT) Received: from www.freebsd.org (localhost [127.0.0.1]) by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5GMm5hG014222 for ; Sun, 16 Jun 2002 15:48:05 -0700 (PDT) (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.12.2/8.12.2/Submit) id g5GMm5Pf014221; Sun, 16 Jun 2002 15:48:05 -0700 (PDT) Message-Id: <200206162248.g5GMm5Pf014221@www.freebsd.org> Date: Sun, 16 Jun 2002 15:48:05 -0700 (PDT) From: Dan Mahoney To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/39382: Passwd will not work when root su's into a user. Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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