LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Shared partition and user write permission (https://www.linuxquestions.org/questions/linux-general-1/shared-partition-and-user-write-permission-341411/)

dashnaam 07-08-2005 05:55 PM

Shared partition and user write permission
 
I've been having trouble getting this to work correctly. Let me first explain my setup:

I created a dual boot machine. FC4 and WinXP. This HD has three partitions. One for Linux, one for WinXP, and a shared partition for files to be shared between the two operating systems.

The shared partition was formatted fat32 using windows.

I didn't have any problems mounting or reading the partition.

I want local users to have the ability to write to this partition <-- This is what I'm having trouble with. After doing some research I thought I had it fixed by changing how I mounted the partition in /etc/fstab with the following:

/dev/hda2 /files vfat users,umask=022 0 0

I know this is not the most secure solution, however I did have it working... at least until I decided to reboot the machine.

Now my local users cannot write to the partition. Am I way off with what I came up with (remember it did work once). Is there another, better, more secure way??

Thanks very much in advance for the help!

-D

Tinkster 07-08-2005 06:28 PM

That would be because of the umask you're using.

It should be 000 if everyone is meant to write to it.


Cheers,
Tink

dashnaam 07-10-2005 09:51 AM

Thanks that worked!

Just out of curiosity, is there any other way to accomplish that?

Tinkster 07-10-2005 01:22 PM

Sure. You could umask=202,uid=nobody,gid=windohs.
And a
addgroup windohs
and
add all people you want to be able to write to
it to that group.

If you only need one user to be able to write:
umask=022,uid=<youruser>


Cheers,
Tink


All times are GMT -5. The time now is 03:10 PM.