|
发表于 2006-6-13 16:58:33
|
显示全部楼层
VFAT does not understand access permissions or ownership, so in Linux it
gets mounted with the default umask and ownership of whoever called mount.
You must specify the options umask, uid, gid in your fstab if you want them to
be different. For example, I mount my windows partition with the following
line in /etc/fstab:
/dev/hdc1 /windows/D vfat rw,uid=501,gid=100 0 2
That assigns ownership to my personal user account and the 'users' group on my
machine. It also gives me my default umask 022, which results in the
permissions rwxr--r-- (755) on the mount directory and all subordinate
directories and files in that partition. Same thing you got.
If I wanted more liberal write permissions, give it a more liberal umask, for
example,
/dev/hdc1 /windows/D vfat rw,uid=501,gid=100,umask=000 0 2
a umask of 000, would result in permissions of rwxrwxrwx (777) on everything
in that partition. |
|