Mounting/owner/group for public FAT partition
Hi folks,
I've created a FAT32 partition for sharing files between operating systems (including WinXP, thus FAT). It's entry in /etc/fstab looks like this: Code:
/dev/hdb11 /osshare vfat defaults,rw 0 2 As things are, root has everything: Code:
drwxr-xr-x 2 root root 8192 1970-01-01 01:00 osshare Is it secure to allow "others" rwx access for a public partition? I can imagine it might be useful in an attack. |
FAT doesn't support permissions, so the only way to set partitions for everything on a FAT partition is through the mount options.
The most common mount option 8in fstab) for FAT partitions is umask, which indicates which permissions are masked (eliminated), so umask=000 gives you full permissions for everyone. There are also dmask and fmask, for directories and files only respectively. You can also assign a UID and GID (user/group ID) to the partition. For more info read fstab(5) |
I used umask=0000, and this works as I hoped. Thanks to your hint I found a wiki that offered a full 4-digit permissions code, and used that.
I'm still not sure about the security of having a partition (even a non-system one) that is fully rwx for everyone, but now I've got one. |
That's where the gid and uid come in...
btw would you mind sharing the link to the wiki - I'm still not 100% comfortable with the fourth digit. |
All times are GMT -5. The time now is 08:51 PM. |