>I find that when I've logged in to Linux as user and then su to become
>root, that I don't have access to the shutdown command. An odd message
>about bash not being able to see shutdown command.
>
>I run bash both as root and user. When I log in as root, su to user, I can
>shutdown after going back to root. But when I log in as user, I cannot su
>to root to shut down.
>
>??
>
>Haines Brown

The problem is that when you su to root from user, it keeps the user's path, which 
doesn't include /sbin (which is where shutdown hides).  So you just need to type
/sbin/shutdown -h now 
or what have you.

Regards,

Mike Anderson

Reply via email to