a POSIX shell script replacement for sudoedit using doas
Go to file
Joel Beckmeyer 69fc00861e fix non-existent file case 2021-01-31 14:38:31 -05:00
LICENSE Initial commit 2021-01-30 17:27:42 -05:00
README.md update readme with suggested configuration 2021-01-31 14:28:04 -05:00
doasedit fix non-existent file case 2021-01-31 14:38:31 -05:00

README.md

doasedit

a Bash script replacement for sudoedit using doas. Inspired by this Reddit comment.

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