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

Summary: regular user can reboot
Product: [Fedora] Fedora Reporter: Doug Henderson <djhender>
Component: usermodeAssignee: Bill Nottingham <notting>
Status: CLOSED NOTABUG QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: rvokal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-05-09 18:43:53 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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.