sudo in a shell script
Dennis Kaarsemaker
dennis at kaarsemaker.net
Fri Jul 15 10:14:33 UTC 2005
On vr, 2005-07-15 at 11:07 +0100, Lee Braiden wrote:
> You probably want to use a script which has been setuid'd to root
That's not possible for shell scripts...
Scripts can only be setuid root if the interpreter for that script is
setuid root (and NEVER EVER make bash setuid root!). Perl has a special
setuid root interpreter, no other scripted language has that afaik.
--
Dennis K.
- Linux for human beings: http://www.ubuntulinux.org
- Linux voor normale mensen: http://www.ubuntulinux.nl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050715/fed52ecb/attachment.sig>
More information about the ubuntu-users
mailing list