We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca8e263 commit 3c92059Copy full SHA for 3c92059
_posts/2022-12-18-debian-lxc-setup.md
@@ -66,7 +66,20 @@ PasswordAuthentication no
66
PermitEmptyPasswords no
67
```
68
69
-Once you've made the changes, you can restart the LXC and use SSH with your new user.
+## Use `sudo` without prompt
70
+
71
+To allow a user to execute `sudo` commands without being prompted for a password, create the following file.
72
73
+```bash
74
+/etc/sudoers.d/patrick
75
+```
76
77
+```conf
78
+patrick ALL=(ALL) NOPASSWD: ALL
79
80
81
+> Once you've made the changes, you can restart the LXC and use SSH with your new user
82
+{: .prompt-tip }
83
84
## Unattended Upgrades Configuration
85
0 commit comments