dip

old school recipes for janitorial snafu.
git clone git://git.ricketyspace.net/dip.git
Log | Files | Refs

commit 0174fb2f7284870a4a7924e800a78490fbe4e85a
parent 3900c2a37e85da835050b382bb8594dd451ff410
Author: rsiddharth <s@ricketyspace.net>
Date:   Tue, 22 May 2018 05:59:03 +0000

etc: Add sudoers.d/s.

Diffstat:
etc/sudoers.d/s | 25+++++++++++++++++++++++++
1 file changed, 25 insertions(+), 0 deletions(-)

diff --git a/etc/sudoers.d/s b/etc/sudoers.d/s @@ -0,0 +1,25 @@ +# Host alias specification + +# User alias specification +User_Alias CRYPTERS = s +User_Alias SANDBOXERS = s +User_Alias SUPER_COWS = s +User_Alias MAKERS = s + +# Cmnd alias specification +Cmnd_Alias CRYPT = /sbin/losetup, /sbin/cryptsetup, \ + /sbin/mkfs.ext4, /bin/mount, /bin/umount, \ + /usr/local/bin/tomb +Cmnd_Alias SANDBOX = /usr/sbin/debootstrap, /usr/bin/systemd-nspawn, \ + /bin/machinectl, /usr/bin/docker +Cmnd_Alias MAKE = /usr/bin/make + +# User privilege specification +root ALL=(ALL:ALL) ALL + +# Allow super cows to execute any command +SUPER_COWS ALL=(ALL:ALL) ALL + +CRYPTERS ALL = NOPASSWD: CRYPT +SANDBOXERS ALL = NOPASSWD: SANDBOX +MAKERS ALL = NOPASSWD: MAKE