Emil CHERICHES

Emil CHERICHES

TIP: Debian/Ubuntu prevent accidental halts/reboots

August 15, 2013 Emil C
No Comments

If you’re connected to a server via SSH as root and accidentaly you type in “reboot” or “poweroff” this might really happend. To avoid this you could simply install a package:

apt-get install molly-guard

After this, if you type, for instance, “reboot” you will be prompted with your server’s hostname in order to really do it:

root@server:~# reboot
W: molly-guard: SSH session detected!
Please type in hostname of the machine to reboot:
Good thing I asked; I won't reboot server ...
W: aborting reboot due to 30-query-hostname exiting with code 1.
root@server:~#
linux debianubuntu
Previous Post

TIP: Make Postfix use less SQL connections

Next Post

Hosting Websites with Apache and Nginx on Debian Wheezy

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts

  • Flash Tasmota on the Sonoff Mini – Linux user experience
  • DokuWiki a simple solution to sorting documentation
  • I discovered Wireguard
  • Using Let’s Encrypt with CentOS (for now)
  • Let’s Encrypt is Trusted

Categories

  • from the web
  • just blog
  • linux
    • Mail Server Series
  • News
  • phones
  • Phones & Tablets
  • programing
  • security
  • Smart Home
  • Tips & Tricks
  • Uncategorized
  • Web development
  • Windows

Blogroll

  • cheriches.fr
Subscribe by Email

Recent Posts

  • Flash Tasmota on the Sonoff Mini – Linux user experience
  • DokuWiki a simple solution to sorting documentation
  • I discovered Wireguard
  • Using Let’s Encrypt with CentOS (for now)
  • Let’s Encrypt is Trusted

Categories

  • from the web (3)
  • just blog (1)
  • linux (23)
    • Mail Server Series (7)
  • News (1)
  • phones (1)
  • Phones & Tablets (2)
  • programing (1)
  • security (2)
  • Smart Home (1)
  • Tips & Tricks (15)
  • Uncategorized (3)
  • Web development (1)
  • Windows (1)

Blogroll

  • cheriches.fr

Tags cloud

12.04 aircrack-ng Android Apache apt-get backports BlackBerry cache CentOS Chrome CSS CyanogenMod debian Dell dotdeb Dovecot Eee PC Firefox FPM GNOME Hardware internet explorer javascript KVM linux MariaDB MPM MySQL Nginx OpenVPN php piwik Postfix Postfix Admin RedHat release RHEL Samba SELinux smarty ubuntu wifi windows xp Youtube

Recent Comments

  • Frank on Dedicated Mail Server Hosting Multiple Domains – Step 3 – Postfix and Dovecot
  • Andrew Schott on Dedicated Mail Server Hosting Multiple Domains – Step 3 – Postfix and Dovecot
  • Emil C on Dedicated Mail Server Hosting Multiple Domains – Step 3 – Postfix and Dovecot
  • Andrew Schott on Dedicated Mail Server Hosting Multiple Domains – Step 3 – Postfix and Dovecot
  • Emil C on Dedicated Mail Server Hosting Multiple Domains – Step 3 – Postfix and Dovecot
Proudly powered by WordPress | Theme: Fmi by Forrss.