Allow passwordless sudo for fred
40-char password from a manager is impractical for frequent sudo use. SSH is already key-only, so local privilege escalation is the only remaining threat — acceptable on a single-user home server. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
29dae0c5ea
commit
570ddf38f6
1 changed files with 5 additions and 0 deletions
|
|
@ -3,6 +3,11 @@
|
|||
|
||||
{
|
||||
# Define a user account. Don't forget to set a password with 'passwd'.
|
||||
security.sudo.extraRules = [{
|
||||
users = [ "fred" ];
|
||||
commands = [{ command = "ALL"; options = [ "NOPASSWD" ]; }];
|
||||
}];
|
||||
|
||||
users.users.fred = {
|
||||
isNormalUser = true;
|
||||
description = "fred";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue