HOw to allow usb stick mounts without root involement?

June 15th, 2011 - 04:40 am ET by unruh | Report spam
When I plug in a usb stick, it gives me a list of the partitions, aand
asks what I want to do . I pick Filemanager, and it then tells me I need
root permission to mount. I want any user to be able to mount any
usbstick ( which means I do not waht 100 different entries in fstab).
There must be some udev rule which I do not have properly set up which
will just automaticlaly mount the usb stick, or at least not demand root
permission to mount it.
email Follow the discussionReplies 22 repliesReplies Make a reply

Replies

#1 Bit Twister
June 15th, 2011 - 07:00 am ET | Report spam
On Wed, 15 Jun 2011 08:40:27 GMT, unruh wrote:
When I plug in a usb stick, it gives me a list of the partitions, aand
asks what I want to do . I pick Filemanager, and it then tells me I need
root permission to mount. I want any user to be able to mount any
usbstick ( which means I do not waht 100 different entries in fstab).
There must be some udev rule which I do not have properly set up which
will just automaticlaly mount the usb stick, or at least not demand root
permission to mount it.



Hmmm, I just tried it. No entries, (LABEL, or device) in /etc/fstab
and works for me.

$ cat /etc/release
Mandriva Linux release 2010.2 (Official) for x86_64


Of course, I have added myself to a few groups.

$ groups
<snip> lp floppy games cdrom usb cdwriter audio video dialout disk <snip>

Remember, anytime you add/remove user to a group, the user has to log
out/in to pick up those changes.

You might want to check the group assigned to the usb device. Example:

$ ls -al /dev/sg*
<snip>
crw-rw- 1 root disk 21, 1 2011-06-14 16:02 /dev/sg1
crw-rw- 1 root cdrom 21, 2 2011-06-14 16:02 /dev/sg2
<snip>

Similar topics