[Sunhelp] strange things happening, grantpt failed

Magnus Abrante magnus.abrante at sweden.sun.com
Fri Oct 27 06:42:06 CDT 2000


> Your /dev/kmem is only accessible by root and top can only be run as root.
> You have a couple of choices.....
 
> 1) Less Secure - chmod /devices/pseudo/mm at 0:kmem (linked to by /dev/kmem) to
> allow others access.

Not a very good idea, /dev/kmem is the virtual memory of the kernel, you
dont want to change the permissions of it, i'm not to sure how the 
kernel would react to it either.

> 2) More Secure - Install sudo and set up top access for specific
> users/groups
> 3) Most Secure - Leave as is and only allow root usage.

If you want top to be able to query /dev/kmem the best way i can see is to
make top setuid root:

chown root top 
chmod u+s root

Regards,

        //Magnus Abrante
/* This is my opinion and not the one of my empolyer */






More information about the SunHELP mailing list