sudo: properly allow wheel group to use sudo via visudo#6
sudo: properly allow wheel group to use sudo via visudo#6ljmf00 wants to merge 1 commit intoipleiria-labrob:masterfrom
Conversation
Signed-off-by: Luís Ferreira <contact@lsferreira.net>
FFY00
left a comment
There was a problem hiding this comment.
Please keep sudores.d support and just install a new file there with your config.
The This is what the default configuration looks like: So instead of modifying the |
Yes, but that can change anytime.
Could you elaborate?
Yes, that avoids all this regex complexity. Also, the current regex is easily breakable, if we go with the regex approach we should use something a bit better. |
Sure, then I propose to have our own
The problem I faced is because - name: enable sudoers.d support
lineinfile:
path: /etc/sudoers
line: '#includedir /etc/sudoers.d'With the new configuration, it will write something like: And will include the files inside
Yeah agree. |
Signed-off-by: Luís Ferreira contact@lsferreira.net
The same approach on Arch Linux infrastructure https://git.archlinux.org/infrastructure.git/tree/roles/sudo/tasks/main.yml as sudoers file already has entries for what is done here previously. Also it's better to use visudo to edit
/etc/sudoers.This approach will unsure that running ansible twice won't break
/etc/sudoersfile.