set uid root script

2007-12-25 9:29:00

thanks to all the replies I received. I found out that

if a script is set setuid it is actually run as the real user and group

ids. To get around this use the p option, e.g.:

#!/bin/sh -p

If the -p flag is present, the shell will not set

the effective user and group IDs to the real user

and group IDs.

doug

Comments

Got something to say?

You must be logged in to post a comment.