Eric,

I recall that running scripts with suid set is disallowed.  A reference is 
given in the O'Reilly "Learning the Bash Shell" book, 2nd Ed., page 255.

"Modern system administration wisdom says that creating suid shell scripts is 
a very, very bad idea.  In fact, some versions of UNIX intentionally disable 
the suid feature for shell scripts."

Highly recommend the book.

Craig Van Degrift

On Friday 15 December 2000 09:01, you wrote:

> > I've RTFM, and then read it again, I'm missing something OBVIOUS.
>
> I'm trying to build a simple script which executes one line, but it
> needs root permission.  So, I built the one line script, did a chown
> root.system script ; chmod 6755 script.
>
> However it acts like the script is running still as the underprivileged
> user.
>
> Can I not allow a less powered user to run a command as root by using a
> script and the S bit?
>
> If so what am I missing!!
>
> Thanx
>
> Eric

----------------------------------------
Content-Type: text/plain; charset="us-ascii"; name="message.footer"
Content-Transfer-Encoding: 8bit
Content-Description: 
----------------------------------------

Keep in touch with http://mandrakeforum.com: 
Subscribe the "[EMAIL PROTECTED]" mailing list.

Reply via email to