Hi, I’m trying to change the owner of my /windows/D directory so I can move files over to my windows partition as a user (and not just root). However, I’m having some trouble:
kwikness wrote:
> Hi, I’m trying to change the owner of my /windows/D directory so I can
> move files over to my windows partition as a user (and not just root).
> However, I’m having some trouble:
…]
> It looks like the command completes successfully, but the owner does
> not change. Am I doing something wrong?
caf4926 wrote:
> You need to edit
> /etc/fstab
>
> see this guide
> ‘openSUSE: HowTo set disk access permissions for Fat32 (VFAT) on a
> desktop PC’ (http://www.swerdna.net.au/linhowtofat32.html)
>
>
> the line will be like this eg:
>
> /dev/sda?* /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
>
> reboot required
That’s if it is a vfat/fat32 partition. It might also be NTFS – I can’t spot where the filesystem is mentioned by kwikness.
In any event, as caf4926 and LittleRedRooster intimated, the windowsy partitions don’t have permissions in the Unix style. So the Linux mount commands make pseudo-permissions, temporary permissions, that bind the users to adhere to the patterns specified in the mount commands for the time the filesystem is mounted. Then when it’s mounted somewhere else, like in windows, it reverts to it’s original (world writeable) permissions.
In these special cases chown and chmod don’t work (IIRC).
I had a further think.
FAT32 directories usually appear like this (if the user doesn’t intervene):
drwxrwxr-x 1 root users 49152 2009-02-05 21:54 _Docs
and NTFS like this:
drwxr-xr-x 1 root users 49152 2009-02-05 21:54 _Docs
and the second one looks like a match.