in reply to Can the user a script runs as be changed?
See the manual page of the chmod command for information regarding the setuid bit, which will automatically bump your script up to root (or, more accurately, the owner of the file) whenever it's run. This is what the "s" means in a set of permission flags in a "ls -l" listing.
perlsec has some good information on setuid scripts; you almost certainly want them to run with taint mode on.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Can the user a script runs as be changed?
by tachyon (Chancellor) on Jul 02, 2004 at 03:44 UTC | |
by nightwatch (Scribe) on Jul 02, 2004 at 04:18 UTC | |
by tachyon (Chancellor) on Jul 02, 2004 at 04:23 UTC | |
by Lexicon (Chaplain) on Jul 04, 2004 at 17:44 UTC | |
by tachyon (Chancellor) on Jul 04, 2004 at 23:58 UTC | |
by Lexicon (Chaplain) on Jul 15, 2004 at 18:51 UTC | |
by tachyon (Chancellor) on Jul 15, 2004 at 22:02 UTC |