Bug 69452 - Inconsistent behaviour of "reboot" and "halt" with manual page
Inconsistent behaviour of "reboot" and "halt" with manual page
Product: Red Hat Public Beta
Classification: Retired
Component: usermode (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Nalin Dahyabhai
David Lawrence
Depends On:
Blocks: 67217
  Show dependency treegraph
Reported: 2002-07-22 14:12 EDT by Peter van Egdom
Modified: 2007-04-18 12:44 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-08-05 21:52:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Peter van Egdom 2002-07-22 14:12:07 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, 
nothing happens.

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):

How reproducible:

Steps to Reproduce:
1. type "halt" or "reboot" as a normal user.

Actual Results:  Nothing happens.

Expected Results:  "must be superuser" (or something similar).

Additional info:

Source RPM: usermode-1.55-4.src.rpm
Comment 1 Nalin Dahyabhai 2002-07-23 21:23:32 EDT
This will be fixed in 1.56 and later.
Comment 2 Jay Turner 2002-07-30 22:48:50 EDT
Fix confirmed with usermode-1.56-2.
Comment 3 Peter van Egdom 2002-07-31 15:39:46 EDT
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
Comment 4 Nalin Dahyabhai 2002-08-05 21:52:43 EDT
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.
Comment 5 Nalin Dahyabhai 2002-08-13 16:45:15 EDT
Closing because the original bug here is fixed in Raw Hide.

Note You need to log in before you can comment on or make changes to this bug.