Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions sudoers/files/sudoers
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,24 @@ Cmnd_Alias {{ name }} = {{ ",".join(commands) }}
Runas_Alias {{ name }} = {{ ",".join(runas) }}
{%- endfor %}

# User privilege specification
{%- for user,specs in users|dictsort %}
# Netgroup privilege specification
{%- for netgroup,specs in netgroups.items() %}
{%- for spec in specs %}
{{ user }} {{ spec }}
+{{ netgroup }} {{ spec }}
{%- endfor %}
{%- endfor %}

# Group privilege specification
{%- for group,specs in groups|dictsort %}
{%- for group,specs in groups.items() %}
{%- for spec in specs %}
%{{ group }} {{ spec }}
{%- endfor %}
{%- endfor %}

# Netgroup privilege specification
{%- for netgroup,specs in netgroups.items() %}
# User privilege specification
{%- for user,specs in users.items() %}
{%- for spec in specs %}
+{{ netgroup }} {{ spec }}
{{ user }} {{ spec }}
{%- endfor %}
{%- endfor %}

Expand Down