This ports overrides the existing shutdown, reboot, halt commands with its own version that first executes some checks before invoking the real system functionality. For example, one script shipped with this port checks for existing SSH sessions. If any of the three 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.
This ports overrides the existing shutdown, reboot, halt commands with its own version that first executes some checks before invoking the real system functionality. For example, one script shipped with this port checks for existing SSH sessions. If any of the three 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.
To install molly-guard, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install molly-guard
To see what files were installed by molly-guard, run:
port contents molly-guard
To later upgrade molly-guard, run:
sudo port selfupdate && sudo port upgrade molly-guard
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.