Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 157219 - regular user can reboot
Summary: regular user can reboot
Alias: None
Product: Fedora
Classification: Fedora
Component: usermode
Version: 4
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2005-05-09 15:21 UTC by Doug Henderson
Modified: 2014-03-17 02:53 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2005-05-09 18:43:53 UTC

Attachments (Terms of Use)

Description Doug Henderson 2005-05-09 15:21:36 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 Firefox/1.0.3

Description of problem:
boot fully updated system with build 1287.
modify grub parameters to add "selinux=0"

issue telinit 5 as root
startup my usual suite of apps (Oracle 10g, seti@home)

connected remotely via ssh.

$ /sbin/shutdown -r now
shutdown: you must be root to do that!

[doug@lambda ~]$ /sbin/reboot
reboot: must be superuser.

$ reboot
*** system reboots. ***
man page for reboot says non-root user will get diagnostic message.

# which reboot

$ ls -li /usr/bin/reboot /sbin/reboot
4128951 lrwxrwxrwx  1 root root  4 Apr 28 06:22 /sbin/reboot -> halt
5903240 lrwxrwxrwx  1 root root 13 Apr 11 22:51 /usr/bin/reboot -> consolehelper

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. connect as regular user
2. execute reboot

Additional info:

Comment 1 Doug Henderson 2005-05-09 15:22:44 UTC
changed component from SysVinit to usermode as it is /usr/bin/reboot not
/sbin/reboot that causes problem.

Comment 2 Bill Nottingham 2005-05-09 18:43:53 UTC
If you're logged in on the console (this includes X), this is expected behavior.

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