Click to See Complete Forum and Search --> : Letting users write to my Windows partition...


Wallex
08-29-2002, 10:30 AM
I've seek and read about this topic, and all I can find is 'how to mount the windows partition as a rw drive', but the owner is root, and only root can write to it! I've tried as root to change the permissions, and I always get an error message:
chown: changing ownership of `Temp': Operation not permitted
Why not? I am root, am I not able to change the it? Is it because it's a Windows partition? If a windows partition is always owned by root, how am I supposed to write to it? By su'ing and then moving a file there? I don't really wanted to make all of Windows writeable to the users, I just wanted write access to a 'temp' folder inside of it. Is there anything I am doing wrong or I just can't ever write to the windows partition as a user?
The Windows entry in fstab is (in case ya need to know):
/dev/hda1 /windows/C vfat defaults 1 2

Icarus
08-29-2002, 10:43 AM
You are so close to getting this you can almost taste it! :D

/dev/hda1 /windows/C vfat defaults,umask=000 1 2

You need that umask statement in the fstab, it works like a reverse chmod for permissions. So a 000 = 777 and vice-versa, this way you can play around with it so only certain users can have permission to write ;)

bwkaz
08-29-2002, 02:08 PM
You can't change the permissions because Windows uses FAT as a filesystem, and it has nowhere to set permissions for files.

You should get that error on every file and every directory on your Windows partition.

Setting the umask in /etc/fstab as mahdi suggested is the way to do it. If you don't want everyone that has a login to be able to write, then you can set the umask to 007, and the group to something, and make the users that you want to give access to it part of that group. 000 is easier though.

Wallex
08-29-2002, 05:04 PM
umask? I see... I thought about this before. I know the FAT filesystem has no 'permissions', so I had no idea how I was supposed to alter the permissions (and how to store them for future use). Well.. I'll go play with the umask now. I think reading the man will help, always healthier than just playing around!

rdeschene2
08-29-2002, 06:28 PM
Alternatively:

/dev/hda1 /windows/C vfat noauto,user 0 0

OR

/dev/hda1 /windows/C vfat auto,user 0 0

See man mount and man fstab for a description of these various settings.