LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-08-2005, 05:55 PM   #1
dashnaam
LQ Newbie
 
Registered: Jul 2005
Location: Potsdam NY
Distribution: Fedora
Posts: 17

Rep: Reputation: 0
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
 
Old 07-08-2005, 06:28 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
That would be because of the umask you're using.

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


Cheers,
Tink
 
Old 07-10-2005, 09:51 AM   #3
dashnaam
LQ Newbie
 
Registered: Jul 2005
Location: Potsdam NY
Distribution: Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks that worked!

Just out of curiosity, is there any other way to accomplish that?
 
Old 07-10-2005, 01:22 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,962
Blog Entries: 11

Rep: Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865Reputation: 865
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
No write permission for /home/user/... payasam Mandriva 2 12-24-2004 12:33 PM
Permission problems in a vfat shared partition ReachingFarr Linux - Newbie 4 10-04-2004 07:09 AM
FAT32 shared drive lacks user write access abijah Linux - General 2 06-28-2004 06:28 PM
Win/Linux shared partition permission problems Ice Dragon Linux - Newbie 3 03-19-2004 05:52 PM
vfat partition - write permission for users group digitized_funk Linux - Newbie 8 03-19-2003 07:30 AM


All times are GMT -5. The time now is 12:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration