[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Setting effective UID for a shell script



As far as I know, you can't. I think you have to setuid() and exec() in
a, say, C compiled program.

El Tue, May 14, 2002 at 11:05:08PM -0500, Alex Malinovich escribió:
> How can I set the effective UID for a shell script? I've got a script
> which checks if xscreensaver is running and if not, starts it and then
> activates it. However, the script always gets run as root (it's being
> run as an APM script). This doesn't work if I'm logged in as myself
> since xscreensaver will think it's dealing with root.
> 
> -Alex
-- 
---------------------------------------------------
Alberto Cabello Sánchez <alberto@unex.es>
Universidad de Extremadura - España - Spain
Debian Potato - GNU/Linux 2.2.20
---------------------------------------------------


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: