cf5f037f498924d9c776ad38d78f0512e30a3579
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
Description
Languages
Shell
100%