Linux-Noob Forums
Protecting your box in an emergency - Printable Version

+- Linux-Noob Forums (https://www.linux-noob.com/forums)
+-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html)
+--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html)
+--- Thread: Protecting your box in an emergency (/thread-2744.html)



Protecting your box in an emergency - Shock Wave - 2005-04-15


What's the best way to disable terminal and modem logins in an emergency panic situation?

 

I know you can set the file /etc/securetty to contain only the local console device, or just comment the rest of the contents, but what are the other options?




Protecting your box in an emergency - znx - 2005-04-15


er nope.. ;)

 

i would use /etc/nologin, simply type:

 



Code:
touch /etc/nologin




 

If a file called /etc/nologin exists, no user can log in. Only root can be logged in on the console (important this.. as root cannot login remotely). This is what you need when you want a fully operational system with networking active etc but dont want the users. Of course the users that are currently logged in will remain so.




Protecting your box in an emergency - xDamox - 2005-04-15

You could also init 1 this will put you in Single user mode



Protecting your box in an emergency - z0ny - 2005-04-15

I would vote for "shutdown -h now". :)



Protecting your box in an emergency - znx - 2005-04-18


Quote:I would vote for "shutdown -h now". :)

 

 

how about:

 

rsh z0ny shutdown -h now