I was at a friend's house and he wanted to be able to 'halt' shutdown -h now or shutdown -r now from his regular user. I realize that you can ctrl+alt+delete to reboot. but to halt the system and powerdown I think you need to use the commands. Anyway, I logged in as root on his machine, went into his user's directory and created a script that took an option from the command line '-h' or '-r' and called shutdown. The file was owned by root and group root. I then chmod 4755 the script. When I ran the script 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.
Thanks, Boyd _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. ================================================ 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. ================================================
