Click to See Complete Forum and Search --> : Problems with chown and vfat partitions...


Infohawk
03-07-2002, 12:20 AM
I have two vfat partitions that I'm trying to get my user to have full access to.

When I run chown user /mnt/point -R

I get back

chown: changing ownership of 'mnt/point': Operation not permitted

Why won't it let me change the owner here? Thanks.

scanez
03-07-2002, 02:02 AM
Are you running this as root?

bigrigdriver
03-07-2002, 03:59 AM
Chown changes ownership of the partitions. If you only want users to have access, make sure the users are listed in the users group, then use chgrp -R u+rwx /mnt/point to give members of the users group read/write/execute permissions.

Infohawk
03-07-2002, 06:55 PM
I'm using root.

When I chgrp groupname -R u+rwx /mnt/point

I get the operation not permitted error again for every file on the mountpoint.

mdwatts
03-07-2002, 07:14 PM
You cannot recursively change permissions on a vfat (Windows) partition as fat/fat32 does not support Unix permissions.

Infohawk
03-07-2002, 07:25 PM
WattsMD,

If that is the case then how do I get my user to write files on vfat? Right now I get a permission error when trying to save a text file on the vfat mount point with my user.

Linuxcool
03-08-2002, 01:16 AM
Edit your lines for your vfat partitions in your /etc/fstab file and add umask=0 to them.

Ex.
/dev/hdxy /mnt/win_c vfat user,noauto,umask=0 0 0

The only problem with this is that it allows everyone to access your vfat partitions.

mdwatts
03-08-2002, 07:06 AM
The mount manpage (man mount) also has lots of stuff about user permissions etc. Have a look through it.

Infohawk
03-08-2002, 10:32 PM
I read the man for mound and fstab...

one thing that I'm not clear on is the uid= value. It seems like they want a digit or combination of digits. My user is a string of characters. Does my user also have a uid value associated with him? How would i find this out?

Linuxcool
03-09-2002, 12:54 AM
You can look in your /etc/passwd file. The lines are set up like this:

login_name: passwd:UID:GID:user_name:directory:shell

[ 08 March 2002: Message edited by: Linuxcool ]

Infohawk
03-09-2002, 04:27 AM
In the file you mentioned, I get
user:x:1000:1000:username

Does this mean I should put something like this in my fstab?
/dev/hda7 /mnt/pnt vfat auto,owner,uid=1000 0 0

mdwatts
03-09-2002, 12:44 PM
Yes give that a try.

Infohawk
03-09-2002, 06:36 PM
This works

(in case any future need this info)

Thanks guys.

Linuxcool
03-10-2002, 12:44 AM
You're welcome. :)