From roman@bellavista.cz  Sat Jun 29 06:33:14 2002
Return-Path: <roman@bellavista.cz>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9239837B400
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Jun 2002 06:33:14 -0700 (PDT)
Received: from mail.thundernet.cz (mail.thundernet.cz [62.77.87.114])
	by mx1.FreeBSD.org (Postfix) with SMTP id 3F96843E06
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Jun 2002 06:33:13 -0700 (PDT)
	(envelope-from roman@bellavista.cz)
Received: (qmail 29017 invoked from network); 29 Jun 2002 13:31:21 -0000
Received: from unknown (HELO freepuppy.bellavista.cz) (62.168.44.50)
  by mail.thundernet.cz with SMTP; 29 Jun 2002 13:31:21 -0000
Received: from freepuppy.bellavista.cz (localhost.bellavista.cz [127.0.0.1])
	by freepuppy.bellavista.cz (8.12.5/8.11.6) with ESMTP id g5TDXAEB000392
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Jun 2002 15:33:10 +0200 (CEST)
	(envelope-from roman@freepuppy.bellavista.cz)
Received: (from roman@localhost)
	by freepuppy.bellavista.cz (8.12.5/8.12.4/Submit) id g5TDX9Zk000391;
	Sat, 29 Jun 2002 15:33:09 +0200 (CEST)
Message-Id: <200206291333.g5TDX9Zk000391@freepuppy.bellavista.cz>
Date: Sat, 29 Jun 2002 15:33:09 +0200 (CEST)
From: Roman Neuhauser <neuhauser@mail.cz>
Reply-To: Roman Neuhauser <neuhauser@mail.cz>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: users not in @wheel cannot change their passwords
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         39995
>Category:       bin
>Synopsis:       users not in @wheel cannot change their passwords
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 29 06:40:01 PDT 2002
>Closed-Date:    Thu Feb 06 17:54:40 PST 2003
>Last-Modified:  Thu Feb 06 17:54:40 PST 2003
>Originator:     Roman Neuhauser
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
System: FreeBSD freepuppy.bellavista.cz 4.6-STABLE FreeBSD 4.6-STABLE #0: Sat Jun 29 15:10:05 CEST 2002 root@freepuppy.bellavista.cz:/usr/obj/usr/src/sys/FREEPUPPY2_2 i386


	
>Description:
    users which are not in the wheel group get "permission denied" after
    typing "passwd"
roman@freepuppy ~ > su -m                                                 102:0
Password:
root@freepuppy ~ # su -m prema                                            101:0
freepuppy% passwd
passwd: Permission denied
freepuppy% echo $?
1
freepuppy%
	
>How-To-Repeat:
    obvious from the description
	
>Fix:

    none known to me.
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sat Jun 29 12:03:11 PDT 2002 
State-Changed-Why:  

I think the problem is not the wheel group, but that "passwd" does 
not work from an "su" session, because passwd uses the login name, 
which is not changed by su. It should work fine to run "passwd 
prema" as root, or to log into the user account directly (without 
su) and run passwd there. Can you confirm that this is the case? 


http://www.freebsd.org/cgi/query-pr.cgi?pr=39995 

From: Roman Neuhauser <roman@bellavista.cz>
To: freebsd-gnats-submit@FreeBSD.org, neuhauser@mail.cz
Cc:  
Subject: Re: bin/39995: users not in @wheel cannot change their passwords
Date: Sat, 29 Jun 2002 21:44:27 +0200 (CEST)

 looks like that is really the case.
 but, the fact that at least two other people "experienced"
 this seems to suggest that this behavior is new. however,
 looking at the usr.bin/passwd/passwd.c cvs log doesn't reveal
 anything suspicious, so I guess I just got myself psyched out.
 
 my apologies, guys.
 

From: Colin Percival <colin.percival@wadham.ox.ac.uk>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/39995: users not in @wheel cannot change their
  passwords
Date: Fri, 07 Feb 2003 00:53:49 +0000

    The submitter agrees that this PR is bogus -- could someone close it?
 
 Colin Percival
 
State-Changed-From-To: feedback->closed 
State-Changed-By: mtm 
State-Changed-When: Thu Feb 6 17:53:05 PST 2003 
State-Changed-Why:  
pilot error. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39995 
>Unformatted:
