Sudo/en: Difference between revisions

FuzzyBot (talk | contribs)
Updating to match new version of source page
Tags: Mobile edit Mobile web edit
 
FuzzyBot (talk | contribs)
Updating to match new version of source page
 
Line 1: Line 1:
[https://www.sudo.ws Sudo] allows a system  
[https://www.sudo.ws Sudo] allows a system  
administrator to delegate authority to give certain users - or groups of users - the ability to run commands as root or another user while providing an audit trail of the commands and their arguments.
administrator to delegate authority to give certain [[User management|users]] - or groups of users - the ability to run commands as root or another user while providing an audit trail of the commands and their arguments.
== Usage ==
== Usage ==
Enable sudo-usage for the example user <code>myuser</code>.<syntaxhighlight lang="nix">
users.users.myuser.extraGroups = [ "wheel" ];
</syntaxhighlight>
Following simple configuration will allow all users which are part of the group <code>wheel</code> to execute commands specified inside <code>extraRules</code> as super user using <code>sudo</code> without the need to supply a user password.
Following simple configuration will allow all users which are part of the group <code>wheel</code> to execute commands specified inside <code>extraRules</code> as super user using <code>sudo</code> without the need to supply a user password.
<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">