Bug 1047153 - request no root privilege on shutdown command
Summary: request no root privilege on shutdown command
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-29 14:18 UTC by ryan.cubicle
Modified: 2013-12-30 16:40 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-30 16:40:50 UTC
Type: Bug


Attachments (Terms of Use)

Description ryan.cubicle 2013-12-29 14:18:20 UTC
Description of problem:
I have a non administrative account for daily use.
the KDE request a password on shutdown. 
However, using bash, issuing "shutdown -P now" almost always request no password and immediately shutdown the system.
in very few ocassion, bash will complain no command found, and put sudo/su -c in front and give password will solve the problem.

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


How reproducible:


Steps to Reproduce:
1. start terminal
2. issue "shutdown -P now"
3.

Actual results:


Expected results:


Additional info:

Comment 1 Ondrej Vasik 2013-12-29 20:14:31 UTC
Bash/shell has nothing to do with privileges to run some application. Shutdown utility is from systemd package. No command found probably means you don't have /usr/sbin in your path - therefore bash can't find the utility.

Comment 2 ryan.cubicle 2013-12-30 14:56:33 UTC
I did not complained command not found error, but why a non administrative user can almost always shutdown the system without root password

Comment 3 Ondrej Vasik 2013-12-30 16:09:22 UTC
Yes, I understand your complaint - anyway, I doubt shell is involved in that - it could be either sudoers setup ( http://how-to.wikia.com/wiki/How_to_allow_non-super_users_to_shutdown_computer_in_Linux ) or some issue (probably in the systemd package itself) doing this by default.

Comment 4 Zbigniew Jędrzejewski-Szmek 2013-12-30 16:40:50 UTC
shutdown is in /usr/sbin/. /usr/sbin is in path by default. So you'll get the "command not found" error only if $PATH is modified from the default.

shutdown is allowed for the logged-in user on the physical seat. It is assumed that that person has physical access and can press the button anyway. This can be changed by customizing the policykit rules.


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