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