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:
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.
I did not complained command not found error, but why a non administrative user can almost always shutdown the system without root password
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.
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.