Browse Source

remove sudo files for user

Remove sudo files for users, which still exists, but don't have enabled sudo.
pull/94/head
slimakcz 7 years ago
parent
commit
f39cb118d1
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      linux/system/user.sls

+ 5
- 0
linux/system/user.sls View File

- user: system_user_{{ name }} - user: system_user_{{ name }}
- check_cmd: /usr/sbin/visudo -c -f - check_cmd: /usr/sbin/visudo -c -f


{%- else %}

/etc/sudoers.d/90-salt-user-{{ name|replace('.', '-') }}:
file.absent
{%- endif %} {%- endif %}


{%- else %} {%- else %}

Loading…
Cancel
Save