Giter VIP home page Giter VIP logo

deadman's Introduction

Dead Man's Shutdown

This is a utility to secure a Linux system via shutdown. For this utility to provide security, the system being shutdown must have everything on its disk encrypted (except for the /boot partition) and upon booting a password must be required for decryption. Any swap partitions must also be encrypted, or non-existant.

Shutdown is activated in the following scenarios.

  • If a list of hosts fail ping commands for a designated number of times, shutdown.
  • If the USB device list changes after this utility has started, shutdown.

If the list of hosts fail to ping at all during 3 consecutive attempts when this utility first starts, the script exits. Because for this script to run at all, the rightful system owner must have already decrypted the disk, and we don't want to lock out the rightful owner if there's some network issue going on.

Startup Delay

When the service is started, there is a default 120 second delay (configurable) that allows for a keyboard used to type a password to be removed before the service gets a list of USB devices.

Installation

Run install.sh as root. This will:

  • copy the python script to /deadman.py
  • copy the systemd file to /etc/systemd/system/deadman.service
  • Reload systemd services
  • enable a new service called deadman
  • start the new service called deadman

Starting, Stopping, Enabling, Disabling, Status

To enable on boot: systemctl enable deadman

To disable on boot: systemctl disable deadman

To start: systemctl start deadman

To stop: systemctl stop deadman

To restart: systemctl restart deadman

Get Status: systemctl status deadman -l

Configuration

All configuration exists within the python script deadman.py towards the top of the script. The installed location is /deadman.py so you would need to edit it there after installation. Each variable has comments describing what it does. If you change the configuration when the utility is already running, you need to either restart the service or reboot.

deadman's People

Contributors

wayneworkman avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.