diff options
author | Andreas Fankhauser | 2023-12-01 15:23:00 +0100 |
---|---|---|
committer | Andreas Fankhauser | 2023-12-01 15:23:00 +0100 |
commit | 8528b98779b05bea3661bd2545b6554380aae4f4 (patch) | |
tree | d47516e3db527cccbc2389ef21c3f5cd22ea3de0 /src/sudo/etc-sudoers.txt | |
parent | fd9411ec6026ad876303ed714bee725a2d9df26a (diff) | |
parent | 7333ac4abe0723cbe53636feac37a4de2c790146 (diff) | |
download | dotfiles-8528b98779b05bea3661bd2545b6554380aae4f4.zip dotfiles-8528b98779b05bea3661bd2545b6554380aae4f4.tar.gz |
Merge remote-tracking branch 'gh-hiddenalpha/master'
Diffstat (limited to 'src/sudo/etc-sudoers.txt')
-rw-r--r-- | src/sudo/etc-sudoers.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/sudo/etc-sudoers.txt b/src/sudo/etc-sudoers.txt new file mode 100644 index 0000000..ab69ea5 --- /dev/null +++ b/src/sudo/etc-sudoers.txt @@ -0,0 +1,13 @@ + +Cmnd_Alias CMD_POWEROFF = /sbin/poweroff "" +Cmnd_Alias CMD_MOUNT_C1 = /usr/bin/mount -o "uid=1000\,gid=1000,noatime,noexec" /dev/sdc1 /mnt/[abcdefghijklmnopqrstuvwxyz] + +# MUST be BELOW the "%sudo" line !!!!!!!! +alice ALL=(root) NOPASSWD: CMD_POWEROFF +alice ALL=(root) NOPASSWD: CMD_MOUNT_C1 + + +## Links + +# Syntax "https://unix.stackexchange.com/a/18880/292722" + |