Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


How to change fmask/dmask for USB mount
#1
Hi everybody!

I'm using an external USB drive with one of my Moode 4.3 raspberries.

The drive is "automounted" like this:

Code:
/sbin/mount.ntfs /dev/sda1 /media/Seagate2T -o rw,nodev,nosuid,noexec,noatime,nodiratime,uid=0,gid=0,dmask=0077,fmask=0177,dmask=0022,fmask=0022,uhelper=udisks

I'd like to change either uid=0,gid=0 to mount the disk as a different user or (probably better) change the fmask/dmask so that a user other than root (uid=0) can access the files on the disk with RW permissions.

Questions:
  • in which script is the mount command configured?
  • is it better to change uid/gid or changing the dmask/fmask for example to give group permissions? I have already added another user to the root group (gid=0)
  • why are dmask and fmask repeated twice in the mount command?
Thanks!
franz
Reply
#2
Have a look at

cat /etc/udisks-glue.conf

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
(10-30-2018, 10:29 PM)Tim Curtis Wrote: Have a look at

cat /etc/udisks-glue.conf

-Tim

Thanks!
Reply


Forum Jump: