update readme with suggested configuration
This commit is contained in:
parent
de0ad58d97
commit
cf5f037f49
14
README.md
14
README.md
@ -1,3 +1,17 @@
|
|||||||
# doasedit
|
# doasedit
|
||||||
a Bash script replacement for sudoedit using doas.
|
a Bash script replacement for sudoedit using doas.
|
||||||
[Inspired by this Reddit comment.](https://www.reddit.com/r/linux/comments/l6y7nv/is_doas_a_good_alternative_to_sudo/gl4hs42?utm_source=share&utm_medium=web2x&context=3)
|
[Inspired by this Reddit comment.](https://www.reddit.com/r/linux/comments/l6y7nv/is_doas_a_good_alternative_to_sudo/gl4hs42?utm_source=share&utm_medium=web2x&context=3)
|
||||||
|
|
||||||
|
## doas.conf
|
||||||
|
|
||||||
|
You'll want to configure `doas` such that it doesn't ask for password at every
|
||||||
|
line of the script using `doas`. You can accomplish this with either `nopass`
|
||||||
|
or `persist`, e.g.:
|
||||||
|
```
|
||||||
|
# allow users in group 'admin' to use doas without asking for password
|
||||||
|
# (more dangerous)
|
||||||
|
permit nopass :admin
|
||||||
|
# allow users in group 'admin' to use doas with password, but not asking for
|
||||||
|
# some time after first successful authentication
|
||||||
|
permit persist :admin
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user