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.
In reply to Re: Can the user a script runs as be changed?
by nightwatch
in thread Can the user a script runs as be changed?
by theAcolyte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |