[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
user/1875: chsh for alpha 2.9 release hoses uid 0 to 'root' mapping
- To: gnats@openbsd.org
- Subject: user/1875: chsh for alpha 2.9 release hoses uid 0 to 'root' mapping
- From: Chris Jepeway <thai-dragon@eleven29.com>
- Date: Thu, 14 Jun 2001 14:25:51 -0400
- Resent-Date: Thu, 14 Jun 2001 12:30:03 -0600 (MDT)
- Resent-From: gnats@cvs.openbsd.org (GNATS Management)
- Resent-Message-Id: <200106141830.f5EIU3h22225@cvs.openbsd.org>
- Resent-Reply-To: gnats@cvs.openbsd.org, jepeway@blasted-heath.com
- Resent-To: bugs@cvs.openbsd.org
>Number: 1875
>Category: user
>Synopsis: Changing user info via chsh hoses uid to login mapping for root
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bugs
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jun 14 12:30:02 MDT 2001
>Last-Modified:
>Originator: Chris Jepeway
>Organization:
net
>Release: 2.9
>Environment:
System : OpenBSD 2.9
Architecture: OpenBSD.alpha
Machine : alpha
>Description:
If you use chsh on an ordinary user, to, say, switch shells,
a long listing of the root dir will print "0" in the user
column instead of "root".
>How-To-Repeat:
suxrox% uname -a
OpenBSD suxrox 2.9 GENERIC#33 alpha
suxrox% ls -l /bsd
-rw-r--r-- 1 root wheel 5115787 Jun 6 12:15 /bsd
suxrox% chsh -s /bin/csh
suxrox% ls -l /bsd
-rw-r--r-- 1 0 wheel 5115787 Jun 6 12:15 /bsd
suxrox%
>Fix:
Sorry, my disk w/ source has croaked, so I don't have a fix.
Once the 0 -> root mapping is busted, though, it can be
restored using vipw.
>Audit-Trail:
>Unformatted: