Ubuntu display warning before shutdown over ssh
Posted
by gshankar
on Server Fault
See other posts from Server Fault
or by gshankar
Published on 2010-06-03T04:05:07Z
Indexed on
2010/06/03
4:16 UTC
Read the original article
Hit count: 239
Ok I admit it...
I stupidly shutdown my remote server via ssh instead of restarting it like I wanted to do :(
To prevent me doing a silly again, is there a way to display a warning / confirmation on a shutdown command? (like "Are you sure you want to shut down this server?" yes/no )
OR, can I not allow shutting down (but not restarting because I still might need to do that from time to time) over ssh?
© Server Fault or respective owner