[Pkg-shadow-devel] Bug#304398: marked as done (chfn: does not work as documented in its man page.)

Debian Bug Tracking System owner@bugs.debian.org
Tue, 12 Apr 2005 15:48:14 -0700


Your message dated Wed, 13 Apr 2005 00:36:27 +0200
with message-id <20050412223627.GA3350@nekral.homelinux.net>
and subject line Bug#304398: chfn: does not work as documented in its man page.
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 12 Apr 2005 21:24:39 +0000
>From jgomez@naleco.com Tue Apr 12 14:24:39 2005
Return-path: <jgomez@naleco.com>
Received: from 139.red-80-24-59.pooles.rima-tde.net (gran.naleco.com) [80.24.59.139] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DLSs9-0007vK-00; Tue, 12 Apr 2005 14:24:39 -0700
Received: from tecra.naleco.com ([172.27.101.62])
	by gran.naleco.com with asmtp (Exim 3.35 #1 (Debian))
	id 1DLSrT-0003nO-00; Tue, 12 Apr 2005 23:23:55 +0200
Date: Tue, 12 Apr 2005 23:23:49 +0200
From: Jonay Gomez <jgomez@naleco.com>
To: submit@bugs.debian.org
Subject: chfn: does not work as documented in its man page.
Message-Id: <20050412232349.1935780c.jgomez@naleco.com>
X-Mailer: Sylpheed version 1.0.0beta3 (GTK+ 1.2.10; i386-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-8.0 required=4.0 tests=BAYES_00,HAS_PACKAGE 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Package: passwd
Version: 20000902-12woody1

Program chfn does not work as documented in its man page.

The man page says any normal user can update, for his own user account,
the "fullname" part of the GCOS field.

That is not true in Debian-Woody for the chfn command and the "fullname"
part of any normal user account GCOS field. (I don't have Debian-Sarge
here but it is trivial to try whether this bug is there too or not.)

jgomez1@gran:~$ cat /etc/passwd | grep jgomez1
jgomez1:x:1000:1000:Jonay Gomez,,,:/home/jgomez1:/bin/bash
jgomez1@gran:~$ who am i
jgomez1  pts/7        Apr 12 22:15 (tecra:S.5)
jgomez1@gran:~$ chfn -f "Perico Palotes" jgomez1
chfn: Permission denied.
jgomez1@gran:~$

The man page for chfn has to say "A normal user may only change the fields
for their  own  account, except the fullname part", or else allow the
chfn command for any user to update his own fullname information for
his own account.

These are passwd package dependencies and their versions on this system:

ii  libc6                         2.2.5-11.8                    GNU C Libra=
ry: Shared libraries and Timezone data
ii  libpam0g                      0.72-35                       Pluggable A=
uthentication Modules library
ii  login                         20000902-12woody1             System logi=
n tools
ii  libpam-modules                0.72-35                       Pluggable A=
uthentication Modules for PAM
ii  passwd                        20000902-12woody1             Change and =
administer password and group data.


--=20
Jonay G=F3mez
jgomez@naleco.com



---------------------------------------
Received: (at 304398-done) by bugs.debian.org; 12 Apr 2005 22:36:32 +0000
>From nicolas.francois@centraliens.net Tue Apr 12 15:36:32 2005
Return-path: <nicolas.francois@centraliens.net>
Received: from relay-4v.club-internet.fr [194.158.96.115] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1DLTzj-0004wD-00; Tue, 12 Apr 2005 15:36:31 -0700
Received: from nekral.homelinux.net (f07a-7-47.d1.club-internet.fr [212.194.150.47])
	by relay-4v.club-internet.fr (Postfix) with ESMTP id 417FB168C;
	Wed, 13 Apr 2005 00:36:28 +0200 (CEST)
Received: by nekral.homelinux.net (Postfix, from userid 1000)
	id B8B5B137966; Wed, 13 Apr 2005 00:36:27 +0200 (CEST)
Date: Wed, 13 Apr 2005 00:36:27 +0200
From: Nicolas =?iso-8859-1?Q?Fran=E7ois?= <nicolas.francois@centraliens.net>
To: 304398-done@bugs.debian.org
Cc: Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
Subject: Re: Bug#304398: chfn: does not work as documented in its man page.
Message-ID: <20050412223627.GA3350@nekral.homelinux.net>
Mail-Followup-To: 304398-done@bugs.debian.org,
	Shadow package maintainers <pkg-shadow-devel@lists.alioth.debian.org>
References: <20050412232349.1935780c.jgomez@naleco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20050412232349.1935780c.jgomez@naleco.com>
User-Agent: Mutt/1.5.8i
Delivered-To: 304398-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
X-Spam-Level: 

Hello,

On Tue, Apr 12, 2005 at 11:23:49PM +0200, Jonay Gomez wrote:
> Program chfn does not work as documented in its man page.
> 
> The man page says any normal user can update, for his own user account,
> the "fullname" part of the GCOS field.
> 
> That is not true in Debian-Woody for the chfn command and the "fullname"
> part of any normal user account GCOS field. (I don't have Debian-Sarge
> here but it is trivial to try whether this bug is there too or not.)

On woody, the end of the chfn man page indicates that "The file,
/etc/login.defs, defines some configuration options that affects how
chfn operates, especially for non-root users."

In fact, /etc/login.defs contains a CHFN_RESTRICT variable which permits
users to change their own Full Name field (you just need to add an 'f'
there).


Note: the Sarge man page is even clearer:
"A normal user may only change the fields for her own account, subject to the
restrictions in /etc/login.defs.  (The default configuration is to
prevent users from changing their fullname.)"

So I think this bug can be closed.

Best Regards
-- 
Nekral