At 10:40 AM 2/22/2002 -0600, you wrote:
>as root it worked fine, but as his regular user, it would say "shutdown: 
>must be root" and halt would say "must be superuser" So my question is 
>what am I missing. I thought if you set the uid bit it would run as the 
>owner. But in this case, it's not. I also tried 2755 and 6755 for chmod 
>for just set groupid and set both group and user id.

Like Scott said, you can't set suid shell scripts. I believe you can set 
suid on perl scripts though, but I could be wrong. I haven't really tried. 
Anyway, just setup a script that will do this via sudo.

Regards, Dustin


---
Dustin Puryear <[EMAIL PROTECTED]>
Information Systems Contractor
http://members.telocity.com/~dpuryear
PGP Key available at http://www.us.pgp.net
In the beginning the Universe was created.
This has been widely regarded as a bad move. - Douglas Adams

================================================
BRLUG - The Baton Rouge Linux User Group
Visit http://www.brlug.net for more information.
Send email to [EMAIL PROTECTED] to change
your subscription information.
================================================

Reply via email to