mirror of
https://github.com/saltstack-formulas/sudoers-formula.git
synced 2026-07-16 07:23:19 +02:00
allow for multiple lines for the same user or group
This commit is contained in:
+10
-4
@@ -1,8 +1,12 @@
|
||||
sudoers:
|
||||
users:
|
||||
johndoe: 'ALL=(ALL) ALL'
|
||||
johndoe:
|
||||
- 'ALL=(ALL) ALL'
|
||||
- 'ALL=(root) NOPASSWD: /etc/init.d/httpd'
|
||||
groups:
|
||||
sudo: 'ALL=(ALL) NOPASSWD: ALL'
|
||||
sudo:
|
||||
- 'ALL=(ALL) ALL'
|
||||
- 'ALL=(nodejs) NOPASSWD: ALL'
|
||||
defaults:
|
||||
generic:
|
||||
- env_rset
|
||||
@@ -39,6 +43,8 @@ sudoers:
|
||||
included_files:
|
||||
/etc/sudoers.d/extra-file:
|
||||
users:
|
||||
foo: 'ALL=(ALL) ALL'
|
||||
foo:
|
||||
- 'ALL=(ALL) ALL'
|
||||
groups:
|
||||
bargroup: 'ALL=(ALL) NOPASSWD: ALL'
|
||||
bargroup:
|
||||
- 'ALL=(ALL) NOPASSWD: ALL'
|
||||
|
||||
Reference in New Issue
Block a user