[opensuse] Absolute path is /sbin/*
Hi, When I run any command as a normal user (almost more than 30%), I get "Absolute path to 'reboot' is '/sbin/reboot'". What does it indicate and mean? Simply typing 'reboot' won't reboot the machine but I need to type this. However, simple commands works with "root" and there is doesn't show /sbin/*. Thanks. -- Life and death. At some point we're gonna leave this world. Do I know when? Absolutely not. --- Terrell Owens Just I dislike pain, so all other beings dislike pain. Live and let live. --- Mahavir Bhagwan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 2013-10-09 09:01, AP wrote:
Hi,
When I run any command as a normal user (almost more than 30%), I get "Absolute path to 'reboot' is '/sbin/reboot'". What does it indicate and mean? Simply typing 'reboot' won't reboot the machine but I need to type this. However, simple commands works with "root" and there is doesn't show /sbin/*.
Because a user is not intended to run those commands. This is as designed. - -- Cheers / Saludos, Carlos E. R. (from 11.4, with Evergreen, x86_64 "Celadon" (Minas Tirith)) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iF4EAREIAAYFAlJVIXkACgkQja8UbcUWM1z2DQD/aq8VzzL45y9sK6LuhgLBai2P QLBKwOByiu5tj2rD+ZMA/RKCD396qzfp5c4GYE599Mn4Mz2eosfGXaCV4rDFKmpg =T/2x -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 09/10/13 04:01, AP escribió:
Hi,
When I run any command as a normal user (almost more than 30%), I get "Absolute path to 'reboot' is '/sbin/reboot'". What does it indicate and mean? Simply typing 'reboot' won't reboot the machine but I need to type this. However, simple commands works with "root" and there is doesn't show /sbin/*.
Thanks.
this somehow arbitrary division exists for binaries that should only be called as root, it is a legacy from the good old times and currently does not make much sense because /sbin/reboot is a link to systemctl which will either proceed to reboot the machine if the user you are running CanReboot() or ask you for a root password. short story: it is that way for backward compatibility. -- "Judging by their response, the meanest thing you can do to people on the Internet is to give them really good software for free". - Anil Dash -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wed, 9 Oct 2013 12:31:06 +0530 AP <worldwithoutfences@gmail.com> wrote:
Hi,
When I run any command as a normal user (almost more than 30%), I get "Absolute path to 'reboot' is '/sbin/reboot'". What does it indicate and mean? Simply typing 'reboot' won't reboot the machine but I need to type this. However, simple commands works with "root" and there is doesn't show /sbin/*.
Thanks.
Presumably because /sbin is, quite rightly for a normal user, not in your path. "man bash" and search for PATH under Shell Variables You can always modify PATH to include /sbin but generally you won't need to. Oh my ... since when does /sbin/reboot just initiate a reboot out of the box when not running as root? B -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Brendon Caligari wrote:
You can always modify PATH to include /sbin but generally you won't need to.
I normally just add a symlink for any of those commands to my ~/bin directory. That directory is in a users path by default. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
El 09/10/13 14:53, Brendon Caligari escribió:
Oh my ... since when does /sbin/reboot just initiate a reboot out of the box when not running as root?
Authorization is controlled by polkit, if you are a logged in user with reboot permission, systemd will proceed to perform the task or else ask the root password. -- "If debugging is the process of removing bugs, then programming must be the process of putting them in." - Edsger Dijkstra -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10/9/2013 10:58 AM, Cristian Rodr�guez wrote:
El 09/10/13 14:53, Brendon Caligari escribi�:
Oh my ... since when does /sbin/reboot just initiate a reboot out of the box when not running as root?
Authorization is controlled by polkit, if you are a logged in user with reboot permission, systemd will proceed to perform the task or else ask the root password.
But reboot permission has more to do with where you sit than who you are. Anyone at the console has reboot permission, which sort of makes sense since the power switch is just as easy to reach as the keyboard. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 10/9/2013 10:53 AM, Brendon Caligari wrote:
On Wed, 9 Oct 2013 12:31:06 +0530 AP <worldwithoutfences@gmail.com> wrote:
Hi,
When I run any command as a normal user (almost more than 30%), I get "Absolute path to 'reboot' is '/sbin/reboot'". What does it indicate and mean? Simply typing 'reboot' won't reboot the machine but I need to type this. However, simple commands works with "root" and there is doesn't show /sbin/*.
Thanks.
Presumably because /sbin is, quite rightly for a normal user, not in your path.
"man bash" and search for PATH under Shell Variables
You can always modify PATH to include /sbin but generally you won't need to.
Oh my ... since when does /sbin/reboot just initiate a reboot out of the box when not running as root?
B
The point is, (as you have apparently discovered) that the normal user can simply type /sbin/reboot or /usr/bin/systemctl reboot and accomplish the same thing. There is not necessarily any root protection afforded by simply locating it in /sbin. In this particular case it works for any user at the console. Not someone who has logged in remotely. -- _____________________________________ ---This space for rent--- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
AP
-
Brendon Caligari
-
Carlos E. R.
-
Cristian Rodríguez
-
James Knott
-
John Andersen