Subject: install/13050: ls -l shows number(uid) instead of user name.
To: None <gnats-bugs@gnats.netbsd.org>
From: Makoto Fujiwara <makoto@nazuha.ki.nu>
List: netbsd-bugs
Date: 05/27/2001 21:08:42
>Number:         13050
>Category:       install
>Synopsis:       INSTALL kernel does not honer user name for uid.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    install-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 27 05:08:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Makoto Fujiwara
>Release:        2001/05/17..2001/05/24
>Organization:
www.ki.nu
>Environment:
	iBook,StarMax 3000/200
System: NetBSD nazuha 1.5V NetBSD 1.5V (GENERIC) #0: Sat May 26 12:12:55 JST 2001 root@nazuha:/usr/src/sys/arch/macppc/compile/GENERIC macppc
Architecture: powerpc
Machine: macppc
>Description:
	INSTALL kernel does not honer user name for uid.
	say,
	ls -l won't show the username, but just show raw uid.

	# cat >/tmp/yy
	test
	^D
	# ls -l /tmp/yy
	-rw-r--r--  1 0  wheel  5 May 27 06:47 /tmp/yy

	above '0' should read 'root'.

	This problem affects ./MAKEDEV all step at installation,
        resulting 'invalid user name root ...'
 
	This does not happen at least 2001/03/23.
>How-To-Repeat:
	If you boot from boot.fs or netbsd_GENERIC_MD.gz
	for macppc included in snapshot 20010517,20010524,
	and do above stated in Description.

	I have copied this /bin/ls onto running system,
	of the same snapshot, the same thing happens.
	---------------------------------------------------
	  root@nazuha  20:56:09/010527(/tmp)# /bin/ls -l ls
	  -rwxr-x--x  1 makoto  wheel  1583792 May 27 16:26 ls
	  root@nazuha  20:56:12/010527(/tmp)# ./ls -l ls
	  -rwxr-x--x  1 2029  wheel  1583792 May 27 16:26 ls
	---------------------------------------------------
	But if the owner of the file changed to root,
	---------------------------------------------------
	  root@nazuha  20:56:16/010527(/tmp)# chown root ls
	  root@nazuha  20:56:21/010527(/tmp)# ./ls -l ls
	  -rwxr-x--x  1 root  wheel  1583792 May 27 16:26 ls
	  root@nazuha  20:56:23/010527(/tmp)# ./ls -l ls
	  -rwxr-x--x  1 root  wheel  1583792 May 27 16:26 ls
	  root@nazuha  20:56:26/010527(/tmp)# 
	---------------------------------------------------
	Now it shows the correct user name. (This behavior
	is only on running system, not with INSTALL kernel)
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: