> ----------
> From: Glynn Clements[SMTP:[EMAIL PROTECTED]]
> Sent: 26. maj 1998 14:06
> To: Niels Hald Pedersen
> Cc: [EMAIL PROTECTED]
> Subject: Re: setuid root ?
>
<snip>
> 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.
>
point taken and agreed upon.
My programs in question needs root permissions to 1) apply for real time
scheduling, and 2) programming of /dev/rtc. As these things are done
once at startup time only, I will give up root rights hereafter (setuid
or seteuid, cant remember, not on a Linux system now). I havent tried
this yet, though.
Thanks to all for replying,
Niels Hald Pedersen
[EMAIL PROTECTED]