How do I set GID/UID and mode bits assigned to the directory in /media
, to which my USB drive is auto-mounted when I plug it in (i.e. to the directory, which represents the drive itself, e.g. /media/MyUSBDriveLabel
)?
I'm trying to make an auto-mounted drive accessible by several users, belonging to the same group. Bu default I'm getting it accessible to the current user only:
$ ls -ld /media/MyUSBDriveLabel
drwx------ 18 user group 16384 1970-01-01 03:00 MyUSBDriveLabel
while I'd like to get something like
drwxrwx--- 18 user sharedgroup 16384 1970-01-01 03:00 MyUSBDriveLabel
Is it doable with Nautilus's auto-mount or should I use some other auto-mount solution?
RUN
option is the way to go. One cane issue a mount command inside that option. See: http://askubuntu.com/questions/54321/how-do-i-give-multiple-users-access-to-a-windows-ntfs-partition/54324#54324 – con-f-use Aug 01 '11 at 16:50