View Single Post
  #4   (View Single Post)  
Old 4th November 2018
Prevet Prevet is offline
Shell Scout
 
Join Date: Oct 2017
Posts: 84
Default

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
Reply With Quote