[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




>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: