Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidePrincipi/20c4f0745f5cb15e147aaf6acffacd29 to your computer and use it in GitHub Desktop.
Save DavidePrincipi/20c4f0745f5cb15e147aaf6acffacd29 to your computer and use it in GitHub Desktop.
sudoers.d configuration
# ================= DO NOT MODIFY THIS FILE =================
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at NethServer official site: https://www.nethserver.org
#
#
#
# default group administrator domain admins
#
Cmnd_Alias DOMAINADMINS = /usr/libexec/nethserver/api/*/*, /usr/libexec/nethserver/api/*/*/*
%domain\ admins ALL=NOPASSWD: DOMAINADMINS
# server-manager does not require a tty
Defaults:%domain\ admins !requiretty
#
# Role delegations for wg1
#
Cmnd_Alias WG1= /usr/libexec/nethserver/api/system-*/read, /usr/libexec/nethserver/api/system-roles/*, /usr/libexec/nethserver/api/system-password-policy/*, /usr/libexec/nethserver/api/system-accounts-provider/*, /usr/libexec/nethserver/api/system-users/*, /usr/libexec/nethserver/api/nethserver-mail/*
%wg1 ALL=NOPASSWD: WG1
Defaults:%wg1 !requiretty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment