Skip to content

Commit

Permalink
NTFS-3g/FAT: don't use umask=000 but dmask=000,fmask=111 instead
Browse files Browse the repository at this point in the history
Leave directories as they are, but don't provide files with file
permissions 777 AKA executables, but in mode 666 instead. This
still provides writeable files but they aren't recognized as
executables (e.g. by file managers).

Acked-by: Alexander Wirt
Acked-by: Markus Rekkenbeil
Closes: gf-issue165
  • Loading branch information
mika committed Oct 9, 2012
1 parent cc5cfdb commit 213795f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/grml-udev-rebuildfstab
Expand Up @@ -241,10 +241,10 @@ fi
options=noauto,user,dev,suid,exec
case $ID_FS_TYPE in
ntfs)
options=$options,umask=000
options=$options,dmask=000,fmask=111
;;
vfat|msdos)
options=$options,umask=000
options=$options,dmask=000,fmask=111
;;
ufs)
options=$options,ro
Expand Down

0 comments on commit 213795f

Please sign in to comment.