Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2922  / 3 Years ago, fri, june 4, 2021, 9:32:21

I installed usbmount package on ubuntu server lucid 10.04. It worked fine. I just plug in my USB flash. The server detects it and automatically mounts it under /media/usb0.



I want this USB folder to be available as samba share. I want it to be available to everyone with full control. The problem is that the usbmount mounts it using default permissions with root as owner.



Any idea how I can configure the usbmount to do this?


More From » 10.04

 Answers
2

You set ownership and permissions in /etc/usbmount/usbmount.conf



The file is well commented, you are looking for the section



# For example, "-fstype=vfat,gid=floppy,dmask=0007,fmask=0117" would add
# the options "gid=floppy,dmask=0007,fmask=0117" when a vfat filesystem
# is mounted.
FS_MOUNTOPTIONS=""


Enter in your options in the "FS_MOUNTOPTIONS=" line.



Example, to allow user and group, but deny otheres:



uid=your_uid,gid=your_gid,dmask=0077,fmask=0177


See man mount for options or identify the file system (NTFS / FAT) if you need assistance.


[#41537] Sunday, June 6, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nuehan

Total Points: 253
Total Questions: 109
Total Answers: 120

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
nuehan questions
Sun, Dec 18, 22, 17:34, 1 Year ago
Mon, Mar 28, 22, 00:10, 2 Years ago
Fri, Jun 24, 22, 11:39, 2 Years ago
Thu, Apr 28, 22, 20:54, 2 Years ago
Fri, Aug 20, 21, 01:06, 3 Years ago
;