Subject: chown -R bin.bin /dev/fd
To: None <netbsd-help@NetBSD.ORG>
From: Stefan Monnier <stefan.monnier@lia.di.epfl.ch>
List: netbsd-help
Date: 04/15/1996 11:22:05
I noticed the other day that 'ps' wasn't working correctly anymore.
The reason was a bad group on /dev/mem which ended up coming from a
weird bug in chown. If you have the fdesc typesystem mounted, when the
MAKEDEV does the

	chown -R bin/bin fd

it doesn't just chown the content of fd, but also the devices in /dev:

	/dev-0# l mem
	crw-r-----  1 bin  kmem    3,   0 Apr 15 11:12 mem
	/dev-0# chown -R bin.bin fd
	chown: fd/3/fd: Permission denied
	chown: fd/3/fd: Permission denied
	chown: fd/3: No such file or directory
	chown: fd/4: No such file or directory
	chown: fd: Permission denied
	/dev-1# l mem
	crw-r-----  1 bin  bin    3,   0 Apr 15 11:12 mem
	/dev-0#

This is with NetBSD-1.1 on sparc with fdesc mounted transparently on /dev.


	Stefan