Alex Malinovich wrote:
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.
There is probably a better way, but shouldn't: su -c "<script>" <user> work? --To UNSUBSCRIBE, email to debian-user-request@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org