Re: Access to FAT32 - Suse



Darko Cakardic wrote:

Hi

I made a FAT32 partition for thunderbird mailbox so i can access the
same mailbox from windows and linux.
My user group is also Users and Root.
When i log as root i have permissions for root - view and modify
group - users - view and modify
others - view

1. why cant i modify permissions for others?
2. why cant i read and modify the partition although i have set the
permissions?

fat32 has no idea of file permissions, therefore the fat32 fs driver for Linux implements them on a /partition/ wide basis and they're set at mount time:

----8<--------8<--------8<--------8<--------8<--------8<--------8<----
Date: Fri, 06 May 2005 13:14:44 +0100
From: Robert Newson <ReapNewsB@xxxxxxxxxxxxxxxxxxx>
Subject: Re: Write permission on Fat-Partition to Users

Tobias Portmann wrote:

> I have Debian 3.1 installed on my computer. I have also M$ XP. That I
> can use the MP3-Collection on both OS I made an FAT-Partition. On Debian
> the users have no write permition to the partition. How can I change
> this? edit the fstab File? This ist the fstab-entry for my Partition:
> >>/dev/hda7 /music vfat defaults,user 0 2
> > How can I change the permission, that every user can read and write?
> > Thanks.

Question asked many times...

$ man mount
....
FILESYSTEM SPECIFIC MOUNT OPTIONS
....
Mount options for fat
(Note: fat is not a separate filesystem, but a common part
of the msdos, umsdos and vfat filesystems.)
....
uid=value and gid=value
Set the owner and group of all files. (Default: the
uid and gid of the current process.)

umask=value
Set the umask (the bitmask of the permissions that
are not present). The default is the umask of the
current process. The value is given in octal.

At boot time, the process that uses /etc/fstab to mount the fs's is running
as root, thus any [v]fat partition is mounted as uid=root, gid=root with the
default umask (usually 022 - meaning rwxr-xr-x).

If you don't care about anyone being able to write, add option umask=0
(rwxrwxrwx):

/dev/hda7 /music vfat defaults,umask=0 0 2

Or if you want to allow only selected users to be able to write there (as I
have), create a vfat group on a free gid (eg 499) and add that with
umask=002 (rwxrwxr-x):

/dev/hda7 /music vfat uid=0,gid=499,umask=002 0 2

and add users you want to write to the vfat partition to the vfat group.

.



Relevant Pages

  • Re: R/W access of a vfat partition by any user ?
    ... FAT32 partition will be writable by any user instead of just root. ... users Allow every user to mount and unmount the file system. ... The 'umask=022' makes all files and directories have rwxr-xr-x permissions. ... If you want different perms and you don't speak binary, ...
    (alt.os.linux.suse)
  • Re: Ubuntu second hard drive was Windows partition
    ... Ubuntu second hard drive was Windows partition ... drive that auto mounts but has no permissions. ... ntfs-3g by default, but I know the ntfs driver I still use is Read-only. ... If ntfs-3g does come default in ubuntu, you can probably mount the ...
    (Ubuntu)
  • Re: Ubuntu second hard drive was Windows partition
    ... drive that auto mounts but has no permissions. ... then it's probably an NTFS partition. ... If ntfs-3g does come default in ubuntu, you can probably mount the ... on these lists for a couple of years now and should know what to say and ...
    (Ubuntu)
  • Re: Ubuntu second hard drive was Windows partition
    ... drive that auto mounts but has no permissions. ... then it's probably an NTFS partition. ... ntfs-3g by default, but I know the ntfs driver I still use is Read-only. ... If ntfs-3g does come default in ubuntu, you can probably mount the ...
    (Ubuntu)
  • Re: Help with NTFS & FAT32
    ... FAT32 and a NTFS ones, but I don't know how to make them accessible from ... Basically you need to mount the FAT32 partition somewhere - e.g. on ...
    (Debian-User)