The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.34 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
How to change fmask/dmask for USB mount - by franz159 - 10-30-2018, 10:06 PM

Forum Jump: