Solved [Solved] Rootless access to usb device

Added to devfs.conf:
Code:
own        /dev/da0*      termit:wheel
perm      /dev/da0*       0660
I restarted devfs:
Code:
[termit@freegtw ~]$ id
uid=1001(termit) gid=0(wheel) groups=0(wheel)
[termit@freegtw ~]$ mount /dev/da0s1 /mnt/
mount: /dev/da0s1: Operation not permitted
[termit@freegtw ~]$ ls -l /dev/da0*
crw-rw----  1 termit  wheel    0, 123 16 дек 17:21 /dev/da0
crw-rw----  1 termit  wheel    0, 124 16 дек 17:24 /dev/da0s1
crw-rw----  1 termit  wheel    0, 125 16 дек 17:24 /dev/da0s2
[termit@freegtw ~]$ sysctl -a |grep usermount
vfs.usermount: 1
Why can I not mount?
 
Re: Rootless access to usb device

You have to mount as the root user. Then you can access the device via the mountpoint as a non-root user.
 
Re: Rootless access to usb device

Okay, but who owns /mnt?

The final step is to create a directory where the file system is to be mounted. This directory needs to be owned by the user that is to mount the file system. One way to do that is for root to create a subdirectory owned by that user as /mnt/username.
 
Re: Rootless access to usb device

wblock@ said:
Okay, but who owns /mnt?

The final step is to create a directory where the file system is to be mounted. This directory needs to be owned by the user that is to mount the file system. One way to do that is for root to create a subdirectory owned by that user as /mnt/username.
Thanks, it did help.
 
Back
Top