Subject: Re: ps not working
To: Robin Kumar <c_k_a_p@yahoo.com>
From: Greg A. Woods <woods@weird.com>
List: tech-kern
Date: 08/01/2000 17:12:12
[ On Tuesday, August 1, 2000 at 10:47:46 (-0700), Robin Kumar wrote: ]
> Subject: ps not working
[[ This is probably a netbsd-users question.... ]]
> When i give ps as normal user i am getting
> /dev/kmem permission denied,but doing ps as root it
> works.
> Output of ls -l /dev/mem
> crw-r----- 1 root kmem 2,0
What's "ls -l /bin/ps" show?
-r-xr-sr-x 1 bin kmem 204800 May 11 1998 /bin/ps
If this is a new install you probably unpacked the tar files without
preserving permissions and you may be missing set-id bits on other
programs too, such as su:
$ ls -l /usr/bin/su
-r-sr-xr-x 1 root bin 24576 May 11 1998 /usr/bin/su
If this is the case the easiest thing to do is simply unpack the tar
files again with the correct options to tar or pax (eg. 'pax -p e').
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>