Thread
:
[Announce] CSSU Testing thread
View Single Post
Estel
2013-07-16 , 03:40
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#
1414
I noticed fmask=0000 in
vfat_opts
line of
/etc/default/mount-opts
. (and umask=0000 for
ntfs_opts
)
Out of curiosity, why do we want to have every and each file on vfat/ntfs marked as 'executable' on birth?
*
Wouldn't something like fmask=0133 be more sane, for both vfat and ntfs?
*
In linux filesystems, umask=0000 results in 0666 permissions for files and 0777 permissions for directories, respectively, on birth. For windows filesystems (vfat and ntfs) mounted under linux, it results in 0777 for *both* directories and files, making every single file executable at the very moment of its creation.
That's why it's better to use fmask than umask for vfat/ntfs, and it shouldn't be 0000, unless we explictly want to make everything rwx.
/Estel
__________________
N900's aluminum backcover / body replacement
-
N900's HDMI-Out
-
Camera cover
MOD
-
Measure battery's real capacity on-device
-
TrueCrypt 7.1
|
ereswap
|
bnf
-
Hardware's mods research is costly. To support my work, please consider donating. Thank You!
Last edited by Estel; 2013-07-16 at
03:42
.
Quote & Reply
|
The Following 4 Users Say Thank You to Estel For This Useful Post:
Amboss
,
malkavian
,
Sourav.dubey
,
Wikiwide
Estel
View Public Profile
Send a private message to Estel
Find all posts by Estel