OpenBSD allow user to mount device

OpenBSD has /etc/doas.conf to configure who can play with doas with specific command if we wish.

To allow user1 doing mount and umount without password edit your doas.conf as follow :

permit nopass user1 as root cmd mount

permit nopass user1 as root cmd umount