Submitted by ssmahadik on Wed, 16/03/2005 - 23:22.
( categories: Miscellaneous )

Dear Eluggers,

system generally mounts partitons reading fstab

all my partitions are mounted to /mnt folder

but when I login as another user I am unable to cd to the various folders in the mounted directory

eg if /mnt/c contains foo directory, then unable to cd to foo

before mounting my partition to /mnt/c

perms are drwxr-xr-x

after the file system gets mounted ( by root or after reboot )

perms are drwxr--r--

lack of x in group & others is main cause for not being able to do cd

but after mount command is issued who monitors and changes the perms

also after mounting changing of perms don't have any effect manually either

I had not faced such a problem in Fedora ( or prior Redhat versions)

Any help will be great

U could mail me at ssmahadik@yahoo.com

This is my first post here, I am from Mumbai, India


Alaa's picture
Submitted by Alaa on Thu, 17/03/2005 - 00:27.

there is an option called umask which you can add in fstab to allow users access to the mounted partitions.

generally speaking if you add umask=0 then you grant all users all permissions as in


/dev/hda1 /mnt/windows vfat umask=0,iocharset=utf8,noexec,nosuid 0 0

for more info check the umask sections in the mount man page.

in mandrake there is actually a GUI wizard for setting these with few preset values for the umask.

cheers, Alaa


http://www.manalaa.net "i`m feeling for the 2nd time like alice in wonderland reading el wafd"


Submitted by ssmahadik on Thu, 17/03/2005 - 21:03.

Hey ALAA,

I tried Ur option it works...

Well but this option, is it documented in man pages ??? I doubt

Also when we say defaults in fstab were exactly is it defined ?? can we change it or hack it

Also redhat or Fedora do not use this umask option..

but still non root users are able to browse entire mounted directories

How come redhat has acheived this ??

Thanks very much for the option ( It works gr8 )

Regards, Shailesh

======================================================== Technology is driving me CRAZIER ...........

But who said I want to be SANE !!!!!

Conceptor's picture
Submitted by Conceptor on Fri, 18/03/2005 - 02:55.

when you set some options (eg: user,users,noatime,rw,ro) it's mounting options and it is not fstab options,so search them on mount man pages.

if you checked mount man page you will find all mount options.

one of these defaults which mean using the default options :rw, suid, dev, exec, auto, nouser, and async.

redhat and fedora use defaults instead of using many options ,users will access the files ,but they will not have the write permission until you set the umask option.

Diaa Radwan


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.