How to Install and Uninstall molly-guard Package on Ubuntu 21.10 (Impish Indri)

Last updated: May 12,2024

1. Install "molly-guard" package

In this section, we are going to explain the necessary steps to install molly-guard on Ubuntu 21.10 (Impish Indri)

$ sudo apt update $ sudo apt install molly-guard

2. Uninstall "molly-guard" package

Please follow the guidance below to uninstall molly-guard on Ubuntu 21.10 (Impish Indri):

$ sudo apt remove molly-guard $ sudo apt autoclean && sudo apt autoremove

3. Information about the molly-guard package on Ubuntu 21.10 (Impish Indri)

Package: molly-guard
Architecture: all
Version: 0.7.2
Priority: extra
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Simó Albert i Beltran
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 56
Depends: procps
Enhances: init, kexec-tools, mosh, openssh-server, pm-utils, systemd, sysvinit, upstart
Filename: pool/universe/m/molly-guard/molly-guard_0.7.2_all.deb
Size: 12268
MD5sum: 4f69d536350d17ca0aeee633b433e2b5
SHA1: c1e9cb65b66592bcc55ebb3f806d67224055074c
SHA256: 87e75e9b9db3e9aaecb2b03135bc3512d3a40fd5359a016c9299308a2c0ccbcc
SHA512: ae1090daf62df6f1ae0068da5da3b54b69ad227a098a3f86b4d31090dd797a87bf560aa4549db29df18c5b7966b831c78d86e5f5ce4aa77ff3ee6aa3a72e1bf4
Description-en: protects machines from accidental shutdowns/reboots
The package installs a shell script that overrides the existing
shutdown/reboot/halt/poweroff/coldreboot/pm-hibernate/pm-suspend* commands
and first runs a set of scripts, which all have to exit successfully,
before molly-guard invokes the real command.
.
One of the scripts checks for existing SSH sessions. If any of the four
commands are called interactively over an SSH session, the shell script
prompts you to enter the name of the host you wish to shut down. This should
adequately prevent you from accidental shutdowns and reboots.
.
molly-guard diverts the real binaries to /lib/molly-guard/. You can bypass
molly-guard by running those binaries directly.
Description-md5: 9027b495eb885926ceab360590ed53b7