Ralph Katz wrote:
On 09/06/04 10:20, Ed Sutherland wrote:Is there a way to shutdown my computer within Gnome or KDE without having to first log-out, then picking 'shutdown'?From your terminal window within gnome or kde: $ sudo halt # identical to, but shorter to type than, 'shutdown -h now' Or if you don't yet have sudo installed (you should!): #su root Password: # halt Regards, Ralph
I wouldn't encourage all the users have root access through sudo. However, this is close.You can configure sudo such that all local users can use a command without a password confirmation. This would appear to them as:
"sudo halt"Or you could just write a script that has this as the commands and name it something unique for your system(s) like "pd" for power-down or something goofy. It's up to you.