Red Hat Bugzilla – Bug 69452
Inconsistent behaviour of "reboot" and "halt" with manual page
Last modified: 2007-04-18 12:44:22 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1b) Gecko/20020719
Description of problem:
When I use the commands "reboot" and "halt" as a normal (not root) user,
According to the manual page, the following should occur (I quote..) :
If youbre not the superuser, you will get the message
bmust be superuserb. "
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. type "halt" or "reboot" as a normal user.
Actual Results: Nothing happens.
Expected Results: "must be superuser" (or something similar).
Source RPM: usermode-1.55-4.src.rpm
This will be fixed in 1.56 and later.
Fix confirmed with usermode-1.56-2.
Reopening this bug.
I tested this on a freshly installed Red Hat Linux box (Limbo beta 2 - 7.3.93)
and a normal user (without super-user rights) is still able to reboot or halt
a machine with resp. the commands "reboot" or "halt".
Whether the user is created during installation with Anaconda or after
installation with "useradd <foobar>" does not matter.
Additional info :
[peterve@limbo-pc peterve]$ which reboot
[peterve@limbo-pc peterve]$ ls -l /usr/bin/reboot
lrwxrwxrwx 1 root root 13 jul 31 00:04 /usr/bin/reboot ->
[peterve@limbo-pc peterve]$ which consolehelper
[peterve@limbo-pc peterve]$ rpm -qfi /usr/bin/consolehelper |grep RPM
Group : Applications/System Source RPM: usermode-1.56-2.src.rpm
Two different bugs, it appears. The first (no error message) is fixed here.
The second is part of how usermode works (users who are logged in on the system
console are allowed to reboot or halt the system based on the assumption that
she can just yank the power cord to accomplish the same goal). To disable that
functionality, you'll need to remove the usermode package altogether. To that
end, I'm leaning to re-closing this bug.
Closing because the original bug here is fixed in Raw Hide.