Bug 157219 - regular user can reboot
Summary: regular user can reboot
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: usermode   
(Show other bugs)
Version: 4
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords: Security
Depends On:
Blocks:
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:
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: ---


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
/usr/bin/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):
kernel-2.6.11-1.1287_FC4

How reproducible:
Always

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

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.