permissions problem

Mikkel L. Ellertson mikkel at infinity-ltd.com
Thu Dec 14 04:33:09 UTC 2006


Mike McCarty wrote:
> Gerhard Magnus wrote:
>> I'm running FC5 and gnome on a machine dual booting with Windows and
>> would like to read from/write to a Windows vfat partition.  I've added
>> this line to /etc/fstab:
>>
>> /dev/sdb1   /mnt/win   vfat    rw,noatime,uid=500,gid=500,user   0 0
>>
>> Then, also as root:
>>
>> mkdir /mnt/win
>> chmod 777 /mnt/win
> 
> I believe that 755 is good enough. The mount point itself does not
> need to be writable.
> 
Do the setting of the mount point before the file system is mounted
affect anything? At lease for vfat partitions, the permissions are
changed by the mount command.

[root at mikkel rules.d]# ls -ld /mnt/windows
drwxrwxrwx  26 root root 32768 Dec 31  1969 /mnt/windows/
[root at mikkel rules.d]# umount /mnt/windows
[root at mikkel rules.d]# ls -ld /mnt/windows
drwxr-xr-x  2 root root 4096 Feb 26  2005 /mnt/windows/
[root at mikkel rules.d]# mount /mnt/windows
[root at mikkel rules.d]# ls -ld /mnt/windows
drwxrwxrwx  26 root root 32768 Dec 31  1969 /mnt/windows/

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!




More information about the fedora-list mailing list