SUMMARY: set uid root script

From: Doug Harmon (
Date: Fri Mar 03 2000 - 09:58:26 CST

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.


This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:04 CDT