Quote:
StormCr0w true sbin isn't in the normal user's path, but I actually tried to run it today to check that and it still wouldn't let me run it even though I "World" had read-execute permissions on it. Go figure. Anyway, the command the the login screen menu runs is called /sbin/poweroff (which is a link to /sbin/halt) and /sbin/reboot.
All of these only let you run them if you are root. But......since mingetty (login manager or window manager, something like that) runs as root, I am assuming that the command is executed as root.
That is the best explanation I can give according to my understanding (guess work). BTW I don't know this for fact, it is just my opinion. This post intrigued my interest so I decided to look into it. But if anyone else has a better explanation I would certainly welcome it.
I was also able to find the following qoute, which is taken from the
Quote:
...every user who logs in at the console will be allowed to run programs that accomplish tasks
normally restricted to the root user. If X is running, these actions can be included as menu items in
a graphical user interface. As shipped, the console-accessible programs include halt, poweroff,
and reboot.