Niels Hald Pedersen wrote:

> 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.

The standard way to permanently drop all root privileges on Linux is
to call `setuid(getuid())'.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to