diff options
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" + |