Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 1633  / 1 Year ago, wed, march 1, 2023, 4:16:48

when I plug in my usb hdd, ubuntu 13.04 will mount it to /media/myname/label, but the umask is 700, I try to change it by "chmod 755 xxxxx", but no effect.



So, how to change default umask?



BTW: my usb hdd is stored some movies, I want to use plex media server to scan them, but pms cannot find anything from hdd path, so I think it is a umask issue.


More From » automount

 Answers
0

This answer from UbuntuForums is sort of right:




You'll need to create an fstab entry that uses auto mount, I haven't
done this in a long time but you could try adding the following to
/etc/fstab:



/dev/sdx /path/to/mnt ntfs-3g
auto,users,uid=1000,gid=100,dmask=022,fmask=133 0 0



Then umount and try plugging it back in to see if that works. If you
just want the same permissions for file/directory you could replace
f/dmask with umask.




The sort of wrong part is that it uses disk indices instead of UUIDs or disklabels. The point does, however, remain the same.


[#30085] Thursday, March 2, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tudatchful

Total Points: 270
Total Questions: 109
Total Answers: 122

Location: Palau
Member since Tue, May 30, 2023
1 Year ago
;