Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Mounting A Vfat Windows Partition, can't change the group ownership
bcal
post Oct 27 2004, 10:04 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 9
Joined: 26-October 04
Member No.: 4,034



I have a vfat partition i use to share files between Linux (Fedora Core 2) and Windows XP. It is defined in /etc/fstab and mounts fine to /mnt/transfer, with all the directories and files it contains owned by user "root" and group "root". All users can read all the files, but obviously only root can currently write to the partition. I'd like normal (non-root) users on linux to be able to write to the partition, but I cannot change the ownership of any of the directories (or even individual files) on the partition using either the CHOWN or CHGRP commands - I get an "operation not permitted" message. I am executing the commands as root and the partition is not mounted as read only. The parameters in /etc/fstab are:
/dev/hda2 /mnt/transfer vfat defaults 0 0

Am I being stupid? All help appreciated.
Go to the top of the page
 
+Quote Post
hughesjr
post Oct 27 2004, 11:17 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



All files mounted in a FAT32 (vfat) directory will be owned by one person ... that is because FAT32 doesn't allow for individial file ownership.

So when linux mounts the partition, you must tell it who the user and group will be. If you don't specify, root will be the owner and group.

You can specify the umask, user and group with the following options in the in /etc/fstab:

/dev/hda8 /windows/F vfat umask=0000,uid=linux_user,gid=linux_group 0 0

In the above example, the linux user named linux_user and the members of linux group linux_group would be able to read and write while logged in to linux to the partition.

If you cahnged the umask to 0002, then members of the group could write ... but the user could not.


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
bcal
post Nov 8 2004, 02:26 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 9
Joined: 26-October 04
Member No.: 4,034



Excellent, thanks very much. Sorry about the delay in replying, only just got around to doing the fix due to various reasons. Now if I can just get my new ATI graphics card working...<sigh>
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 14th December 2017 - 04:02 PM