[Sunhelp] strange things happening, grantpt failed

Kalusniak, Jeff jkalusniak at goliathfalls.com
Fri Oct 27 08:33:42 CDT 2000


No doubt #1 is not a good idea, hence the "Less Secure" tag.  Do you think
it's safer to suid it or sudo it?

-----Original Message-----
From: Magnus Abrante [mailto:magnus.abrante at sweden.sun.com]
Sent: Friday, October 27, 2000 6:42 AM
To: sunhelp at sunhelp.org
Subject: Re: [Sunhelp] strange things happening, grantpt failed



> 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 */

_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp





More information about the SunHELP mailing list