On Wednesday, 04 June 2003, at 22:57:05 (+0200),
Oliver Beyer wrote:

> chmod u+s /sbin/halt  # might be crap, but any tries with change group
>                       # etc. won`t work. Got a better idea? let me know!!

chown root:wheel /sbin/halt
chmod 4550 /sbin/halt
usermod -G wheel userid

"userid" is your userid on the system.  You may need to replace
"wheel" with a different group; I chose it because, at least on my
system, the only other member is "root."  (I prefer to use "sys" or
"adm," but those tend to have "bin" and "daemon" as members.)

You really shouldn't do it this way.  You really ought to use sweep or
one of the other tools (*shudder* sudo) to do it.  But you're probably
fairly safe if:  (1) /sbin/halt is a binary, not a shell script; (2)
you are the only one besides root in the wheel group; (3) it's not
world-executable (!!); and (4) both your password and root's are
well-chosen and secure.

Michael

-- 
Michael Jennings (a.k.a. KainX)  http://www.kainx.org/  <[EMAIL PROTECTED]>
n + 1, Inc., http://www.nplus1.net/       Author, Eterm (www.eterm.org)
-----------------------------------------------------------------------
 Many things in life are highly overrated.  Chief among them is love.
 No matter what anyone else tells you, nice guys do finish last.
                                          -- Rules of Life #96 and #97


-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
enlightenment-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to