Niels Hald Pedersen wrote:

> Maybe this is trivial, but I've not been able to find the answer while
> RTFM:
> 
> How do I assign a program root privileges once for all (as I understand
> it, this is termed to "setuid root" it, or something), so the program
> may be run having such by a mortal user ?

As others have pointed out, use `chmod u+s filename' to make a program 
setuid.

However: DO NOT DO THIS TO PROGRAMS WHICH WERE NOT DESIGNED TO BE
SETUID ROOT.

Setuid programs need to be written with security in mind. If you make
an ordinary program setuid root, you will probably allow every user on
the system to obtain full root privileges; i.e. they will be able to
execute any command whatsoever as root.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to