From owner-freebsd-questions Sun Sep 3 7:45: 9 2000 Delivered-To: freebsd-questions@freebsd.org Received: from kazak.wmdesign.net (kazak.wmdesign.net [4.19.114.84]) by hub.freebsd.org (Postfix) with ESMTP id 3490737B43C for ; Sun, 3 Sep 2000 07:45:07 -0700 (PDT) Received: from wmdesign.net (apache@harmonium.wmdesign.net [4.19.114.83]) by kazak.wmdesign.net (8.9.3/8.9.3) with SMTP id JAA42439; Sun, 3 Sep 2000 09:45:09 -0500 (CDT) (envelope-from tduffey@wmdesign.net) Received: from 169.207.71.242 (SquirrelMail authenticated user tduffey) by www.wmdesign.net with HTTP; Sun, 3 Sep 2000 09:50:23 -0500 (CDT) Message-ID: <4698.169.207.71.242.967992623.squirrel@www.wmdesign.net> Date: Sun, 3 Sep 2000 09:50:23 -0500 (CDT) Subject: Re: problem with passwd From: "Thomas M. Duffey" To: cjclark@alum.mit.edu In-Reply-To: <20000902160638.V62475@149.211.6.64.reflexcom.com> References: <20000902160638.V62475@149.211.6.64.reflexcom.com> Cc: freebsd-questions@freebsd.org X-Mailer: SquirrelMail (version 0.5pre1) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Sat, Sep 02, 2000 at 12:14:00PM -0500, Thomas M. Duffey wrote: > > Dear FreeBSD Users, > > > > I have three FreeBSD 4.1-RELEASE machines here, and all have the same > > problem. If a normal user (i.e. not root, not in wheel group) tries to > > change their password, the following occurs: > > > > su-2.03$ passwd > > passwd: Permission denied > > > > However, the following works: > > > > su-2.03$ passwd my_user_name > > Changing local password for my_user_name. > > Old password: > > > > I would guess that somehow the users are not being identified > correctly by passwd(1). That is, in the first case, the getlogin(3) > inside passwd is not returning who you expect. > > How are these users logging in? Had I known this earlier I would have included it in the original post, but it seems the problem only occurs when I 'su' to some user, regardless of what paramaters I pass to su. Logging in directly as the user from console or via ssh does not create this problem. Tom Duffey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message