[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] running as root
> setuid script works? doesn't here :) Just tried the obvious:
>
> #!/bin/sh
> cat /etc/shadow
I belive you have to add an option like -p to the shell or it
refuses to run with differing real and effective uids. So something
like
#!/bin/sh -p
cat /etc/shadow
(This works for the Bourne shell on Solaris, it may be slightly different
for bash).
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.