Add create user and sudo

This commit is contained in:
2018-08-22 21:14:04 +02:00
parent d0f1d4d8a2
commit 0a1068bf8e
5 changed files with 44 additions and 2 deletions

12
files/sudoers Normal file
View File

@@ -0,0 +1,12 @@
root ALL=(ALL) ALL
%sudo ALL=(ALL) ALL
# Allow the build user access to pacman. This user can't be accessed without
# being in the sudo group, anyway.
makepkg ALL=NOPASSWD: /usr/bin/pacman *
# If you managed to run malicious code as my user, I'm already fucked, so err
# on the side of usability.
{% for user in deploy_users %}
{{ user }} ALL=(ALL) NOPASSWD:ALL
{% endfor %}