Skip to content

Commit 3c92059

Browse files
author
Patrick M
committed
add sudo file
1 parent ca8e263 commit 3c92059

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

_posts/2022-12-18-debian-lxc-setup.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,20 @@ PasswordAuthentication no
6666
PermitEmptyPasswords no
6767
```
6868

69-
Once you've made the changes, you can restart the LXC and use SSH with your new user.
69+
## 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 }
7083

7184
## Unattended Upgrades Configuration
7285

0 commit comments

Comments
 (0)