Re: [CLUG-tech] Question about umask in fstab
Hello, If I have to guess, the problem is this. The x bit (which corresponds to 1 in octal) means executable for files, but for directories it means accessible. By removing this bit from the permissions, you end up with files that are not executable, but you also end up with directories that are not accessible. But a quick peek in "man mount" shows there is a solution: dmask=value Set the umask applied to directories only. The default is the umask of the current process. The value is given in octal. Present since 2.5.43. So make it umask=113,dmask=002 I see there is also an fmask, so you can also try fmask=113,dmask=002. Cheers, Izak On Sat, 27 Sep 2003, Steve Crane wrote:
I have two FAT32 partitions mounted that are defined in /etc/fstab with entries created when I installed SuSE 8.1. The umask option is set to 0002, which gives the files permissions of rwxrwxr-x. This is fine in most cases except that ROX-filer, the file manager I use does not correctly handle the MIME-type association if files are executable. So when viewing a folder on one of these partitions I am not able to launch the associated application with a single click and all icons are shown as a gear, which is the ROX icon for executable files. This also prevents thumbnails from being displayed for image files.
I need the file permissions on these partitions to be rw-rw-r-- and was trying to adjust the umask value to provide this. I assumed I should change the umask to 0113 to accomplish this but when I do I can't access the files. When I run ls -l on the root of the mounted partition all files report "permission denied".
If I change the umask to 0013 and remount the partition the files now have permissions of rwxrw-r-- but ROX still sees them as executable, even though the gid option is set to the users group. So it seems that root also needs not to have executable permission but how do I achieve this without making all the files inaccessible?
Any advice would be appreciated.
-- Man who speeds in town reaches red traffic light first. ------------------------------------------------------------------------ Izak Burger Email: iburger@cs.sun.ac.za Homepage: http://www.cs.sun.ac.za/~iburger/ Tel: +27 21 808 4863 Please avoid sending me Word attachments. See http://www.cs.sun.ac.za/~iburger/noword.html
participants (1)
-
Steve Crane