Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General > Member Success Stories
User Name
Password Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.


  Search this Thread
Old 11-19-2003, 12:05 PM   #1
Registered: Oct 2003
Distribution: Debian GNU/Linux 9.0 (amd64) w/kernel 4.11.4
Posts: 287

Rep: Reputation: 30
New 2.6 mount options make VFAT filesystem mounting saner

I just noticed that the upcoming 2.6 kernels (since kernel 2.5.43) support two new filesystem mount options, dmask and fmask. dmask is "umask for directories", and it is the octal map of permissions that you do not want directories to have. fmask is "umask for files", and it is the octal map of permissions that you do not want files to have. Both default to the current umask of the user.

For example, if you have a VFAT filesystem being mounted which always sets the 111 bits for non-executable files, you can enter this line into /etc/fstab (this is just an example):

/dev/node          /mnt/point          auto         defaults,fmask=111          0 0
This masks out all the execute bits on ordinary files that appear when the VFAT filesystem is ordinarily mounted, making your ls output cleaner if you use the --color switch. It also makes your system more secure IMO.

Only 2.5.xx (x >= 43) and 2.6 kernels support this feature; 2.4 and earlier kernels don't.

EDIT: Formatting problem.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mount does not detect a vfat filesystem in my usb stick ernesto_cgf Linux - Hardware 3 12-07-2005 07:19 AM
vfat mount options (perm masks) shakezilla Slackware 7 09-22-2005 04:57 AM
Can't boot XP, can only mount ntfs filesystem as vfat bsm80 Linux - Hardware 4 05-06-2005 05:56 PM
Can't mount Vfat or Msdos Filesystem!! RKris Linux - Software 6 06-19-2002 04:58 PM
Mounting a vfat filesystem in RH 7.2 M.I. Linux - General 8 11-28-2001 09:06 PM > Forums > Linux Forums > Linux - General > Member Success Stories

All times are GMT -5. The time now is 07:36 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration