(Ted Harding) wrote:
The 'shutdown' command is located at /sbin/shutdown
The directory /sbin is (by default) not in a normal (non-root) user's PATH, so just entering "shutdown -h now" as a normal user will result in "command not found" because the OS won't be looking where it is.
If you do "sudo shutdown -h now" that should work.
Unfortunately, it doesn't.
Alternatively (which is my preferred method for root operations), you can have a terminal window tucked away somewhere in which you are permanently logged in as root -- the method for achieving that starting as a normal user being
Trouble there is that the Eee comes wit ready-loaded OS and no root password.
There is a workround - getting in and changing it, but you don't get the usual line-by-line startup like, for instance, with Debian.
I have the workround saved somewhere...
su -
followed by entering root's password at the subsequent prompt.
Then "shutdown -h now" in that window will initiate the shutdown.
It's the root passworm...
As a final wrinkle: I have a little script in /usr/local/bin/down (which is in everyone's path) which just says "shutdown -h now", and the script's permissions are "-rwx------ 1 root root" so that only root can use it. If you set that up, then you can just say
down
(That should be the best way of doing it for Puppy Linux).
Unfortunately, this is Xandros. Still, thanks, and method(s) saved for future reference.