2002-11-07 06:22:13

by DevilKin

[permalink] [raw]
Subject: [2.5.46] Problems with vfat mount umask on directories

'llo list.

This morning I discovered I no longer could write on my vfat data partition as
a normal user. The following line is present in /etc/fstab (and has worked
before with atleast 2.5.40 and each and every 2.4 kernel I used)

/dev/hda7 /mnt/data vfat defaults,gid=103,umask=007 0 0

which gives the partition a mask of 770 to all users in gid 103 (which is
conveniently named fat32). I myself as user devilkin am in this group...

Yet, the directory is still:

07:22:56 root@laptop:/mnt# ls -ld data
drwxr-xr-x 9 root fat32 16384 Jan 1 1970 data

(and where the hell did that date come from??)

The permissioning on the files inside this directory seems correct, but for
the directories it is wrong:

-rwxrwx--- 1 root fat32 313 May 27 12:32 afile.ini*
drwxr-xr-x 3 root fat32 16384 Aug 22 13:01 adir/

which denies me the write rights I need.


Did something change on the fat/vfat/... layer that can cause this to no
longer function?

If you need some more info, just yell... I hope this issue can be resolved.

DK
--
Blore's Razor:
Given a choice between two theories, take the one which is
funnier.


2002-11-07 06:35:47

by DevilKin

[permalink] [raw]
Subject: Re: [2.5.46] Problems with vfat mount umask on directories

On Thursday 07 November 2002 07:28, DevilKin wrote:
> 'llo list.
>
> This morning I discovered I no longer could write on my vfat data partition
> as a normal user. The following line is present in /etc/fstab (and has
> worked before with atleast 2.5.40 and each and every 2.4 kernel I used)
>

And, as usual, if one would first READ the docs and then ask help, one would
get a lot farther. Sorry bout this... :oP Just read the
Documentation/filesystems/vfat.txt file, it says something about dmask (not
present currently in the mount manpage) which made everything work again.

Another case of RTFM...

DK
--
Let's just say that where a change was required, I adjusted. In every
relationship that exists, people have to seek a way to survive. If you
really care about the person, you do what's necessary, or that's the
end. For the first time, I found that I really could change, and the
qualities I most admired in myself I gave up. I stopped being loud and
bossy ... Oh, all right. I was still loud and bossy, but only behind
his back."
-- Kate Hepburn, on Tracy and Hepburn