l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
August 5: Social gathering
Next Installfest:
TBD
Latest News:
Jul. 4: July, August and September: Security, Photography and Programming for Kids
Page last updated:
2002 Mar 14 12:36

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] vfat and permissions - anyone seen this before?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] vfat and permissions - anyone seen this before?



I have a vfat partition mounted as follows, and it has some permissions 
wierdness
#from /etc/fstab
/dev/hda6 /home/bloom/mydocs vfat 
iocharset=iso8859-1,umask=077,gid=501,codepage=850,noexec,uid=501 0 0

When I first set it up, the directories on the partition had the 
following permissions: (the files which I omitted using grep all had 
permissions: 0700)
drwx------    3 bloom    bloom        4096 Mar  1 17:03 Adobe/
drwx------    3 bloom    bloom        4096 Dec  2 15:28 AFI/
drwx------    2 bloom    bloom        4096 Jan  6 15:13 Birkat/
drwx------    2 bloom    bloom        4096 Jan 18 00:28 coopapp/
drwx------    4 bloom    bloom        4096 Jul 24  2001 Devices/
drwx------    2 bloom    bloom        4096 Jul  8  2001 Documentation/
drwx------   12 bloom    bloom        4096 Mar 11 08:32 Downloads/
drwx------    3 bloom    bloom        4096 Jul  9  2001 Fax/
drwx------    4 bloom    bloom        4096 Jan 14 13:13 Finances/
drwx------    4 bloom    bloom        4096 Jul  8  2001 Hack/
drwx------    2 bloom    bloom        4096 Jan  1 16:24 kyack/
drwx------    7 bloom    bloom        4096 Mar  1 17:05 MP3s/
dr-x------    3 bloom    bloom        4096 Mar 11 13:43 My Pictures/
dr-x------    3 bloom    bloom        4096 Mar  1 16:54 Pictures/
drwx------   16 bloom    bloom        4096 Oct  7 16:07 Programming/
drwx------    8 bloom    bloom        4096 Jan 16 18:05 School Work/

I was wondering why the kernel chose for this to happen, and was going 
to make that the major question of my post. The permissions had effect, 
so it wasn't just a display bug (I really was not allowed to copy files 
into the two pictures directories, for example, but I was able to copy 
files into the others)

Then I decided to try to chmod the two folders with `chmod +x Pictures 
'My Pictures'`. I expected it to spit out an error message saying that I 
couldn't do that because it was a vfat partition. Surprisingly it 
worked. My directory listing is now
drwx------    3 bloom    bloom        4096 Mar  1 17:03 Adobe/
drwx------    3 bloom    bloom        4096 Dec  2 15:28 Aggies for Israel/
drwx------    2 bloom    bloom        4096 Jan  6 15:13 Birkat/
drwx------    2 bloom    bloom        4096 Jan 18 00:28 coopapp/
drwx------    4 bloom    bloom        4096 Jul 24  2001 Devices/
drwx------    2 bloom    bloom        4096 Jul  8  2001 Documentation/
drwx------   12 bloom    bloom        4096 Mar 11 08:32 Downloads/
drwx------    3 bloom    bloom        4096 Jul  9  2001 Fax/
drwx------    4 bloom    bloom        4096 Jan 14 13:13 Finances/
drwx------    4 bloom    bloom        4096 Jul  8  2001 Hack/
drwx------    2 bloom    bloom        4096 Jan  1 16:24 kyack/
drwx------    7 bloom    bloom        4096 Mar  1 17:05 MP3s/
drwx------    3 bloom    bloom        4096 Mar 11 13:43 My Pictures/
drwx------    3 bloom    bloom        4096 Mar  1 16:54 Pictures/
drwx------   16 bloom    bloom        4096 Oct  7 16:07 Programming/
drwx------    8 bloom    bloom        4096 Jan 16 18:05 School Work/

I decided to see whether rebooting the computer would have any effect 
(perhaps the permissions I assigned were cached in RAM somewhere.) When 
I rebooted, the permissions were the same (everything was 0700).

So here are my questions:

Why did the system originally decide that the two pictures folders 
should not be writable?
What did the system change when I ran the chmod command?

I'm using kernel 2.4.18-4mdk.
I swear I'm not using UMSDOS.


_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.