Subject: bin/11072: usermod(8) mixes things up badly
To: None <gnats-bugs@gnats.netbsd.org>
From: /usr/pkg/bin/tcsh <feyrer@feyrer.de>
List: netbsd-bugs
Date: 09/23/2000 11:40:26
>Number: 11072
>Category: bin
>Synopsis: usermod(8) mixes things up badly
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Sep 23 11:46:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: hubertf
>Release: 1.5_ALPHA
>Organization:
>Environment:
System: NetBSD miyu 1.5_ALPHA2 NetBSD 1.5_ALPHA2 (MIYU) #12: Thu Sep 21 13:13:38 MEST 2000 feyrer@miyu:/ccd0/cvs/src-1.5/sys/arch/i386/compile/MIYU i386
>Description:
usermod(8) sets some fields in /etc/(master.)passwd to values
it should not.
>How-To-Repeat:
1.
miyu# grep ^feyrer /etc/passwd
feyrer:*:102:100:Hubert Feyrer,,,:/home/feyrer:/usr/pkg/bin/tcsh
miyu# usermod -g wheel feyrer
miyu# grep ^feyrer /etc/passwd
feyrer:*:102:0:/usr/pkg/bin/tcsh:/home/feyrer:/bin/csh
2.
miyu# grep ^feyrer /etc/passwd
feyrer:*:102:100:Hubert Feyrer:/home/feyrer:/usr/pkg/bin/tcsh
miyu# grep ^ingres /etc/group
ingres:*:74:ingres
miyu# usermod -G ingres feyrer
miyu# grep ^ingres /etc/group
ingres:*:74:ingres
miyu# grep ^feyrer /etc/passwd
feyrer:*:102:100:/usr/pkg/bin/tcsh:/home/feyrer:/bin/csh
Note that Real name and Login shell are wrong now. (That's also
why my realname is not on this and my last PR, 11071).
See also PR 11071.
>Fix:
Unknown.
>Release-Note:
>Audit-Trail:
>Unformatted: