Sudo: Difference between revisions
→Usage: Enable sudo for specific user |
Marked this version for translation Tags: Mobile edit Mobile web edit |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
<!--T:1--> | <!--T: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. | ||
</translate> | </translate> | ||
<translate> | <translate> | ||
<!--T:2--> | |||
== Usage == | == Usage == | ||
Enable sudo-usage for the example user <code>myuser</code>.<syntaxhighlight lang="nix"> | Enable sudo-usage for the example user <code>myuser</code>.<syntaxhighlight lang="nix"> | ||
users.users.myuser.extraGroups = [ "wheel" ]; | users.users.myuser.extraGroups = [ "wheel" ]; | ||
</syntaxhighlight | </syntaxhighlight> | ||
</translate> | </translate> | ||
<translate> | <translate> |