Dear all, I have a FAT32 partition on my disk, namely /dev/hda6, that has been mounted in defaults mode on the directory /windows/File_Sharing. The owner is root and group is root too. Well, I would like to be able to save my WinXP/Linux documents that have to be shared between the OS without being root: I know the usage of command chmod/chown, but every time I try to use this command as root on File_Sharing subdrectories, chmod -R <username>.users <dirname> or (the user belong both to users and root groups) chmod -R <username>.root <dirname> I experienxce troubles and errors like this one: OPERATION NOT PERMITTED do you have any suggestion about solving this "simple" problem?? Thanks LM
On Thursday 29 April 2004 11:58, Luca Mollica wrote:
I have a FAT32 partition on my disk, namely /dev/hda6, that has been mounted in defaults mode on the directory /windows/File_Sharing.
There's your problem, right there. :) You can't change the owner of those mounted files afterwards, as they don't have an owner to begin with. The owner is just set to the user that mounted the partition. Defaults mode has default settings for different filetypes. For FAT32 this means that the rights to the files are set to the umask of the executing user (root in this case) at mounting time. You could opt to mount them manually as the user who should have access to the files, or if you know what rights you want the users to have on those files you can set them in the /etc/fstab file. Check man mount, and search for vfat to get more information on how to set which rights. Regards, Pieter Hulshoff
* Luca Mollica
The owner is root and group is root too. Well, I would like to be able to save my WinXP/Linux documents that have to be shared between the OS without being root: I know the usage of command chmod/chown, but every time I try to use this command as root on File_Sharing subdrectories,
change the line in /etc/fstab to /dev/hda1 /windows/C vfat users,gid=users,umask=0002,iocharset=iso8859-1,code=437 0 0 note: change the device and mount directory to your system needs. -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org HOG # US1244711
Hi, my problem has been fixed about changing owner of FAT32 partition simply changing /etc/fstab in this way: /dev/hda6 /windows/File_Sharing vfat defaults,uid=500,gid=100 1 1 And user with uid 500 has been allowed to use this partition both in reading and writing. Cheers LM
participants (3)
-
Luca Mollica
-
Patrick Shanahan
-
Pieter Hulshoff