When want to mount drive or usb using doas, I copy the doas.conf file in the /etc/examples directory up to the /etc directory.
Then I mount with::
doas mount /dev/sd1i /mnt
Where:
1 is drive number
i is partition letter
And unmount with:
doas umount /mnt
If it gets annoying typing your user password every time, you can add 'persist' to the 'permit' command like so:
permit persist keepenv :wheel
|