Red Hat has a somewhat complex setup involving PAM to allow users at the console to do things that require root permission.
'halt' and 'reboot' are symlinks to the 'consolehelper' which is not SUID, but it invokes 'userhelper' which is. The man page for userhelper does not seem to reflect its use in this role. All the same, the userhelper commands use PAM, so you'll notice files like 'halt' and 'reboot' in /etc/pam.d/ that control who is allowed to execute the commands through userhelper. On Sun, 2002-02-03 at 00:14, David wrote: > Hi, > > I found that I can reboot my RedHat 7.1 system as an ordinary user by > executing 'reboot' on the commandline. However, I can't shutdown/reboot my > system using 'shutdown -h now' or 'shutdown -r now' as an ordinary user. I > can only do this as root. However, the manpage for reboot (which is a > symlink to halt) says that 'shutdown -r now' is called when reboot is > executed. But halt is not setuid. So how come I can reboot as a normal user? > > Thanks, > David > > PS: Just trying to understand a bit more about Linux. > > > > _______________________________________________ > Redhat-list mailing list > [EMAIL PROTECTED] > https://listman.redhat.com/mailman/listinfo/redhat-list
signature.asc
Description: This is a digitally signed message part