LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-13-2005, 09:56 PM   #1
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Rep: Reputation: 15
Writing to FAT32


I have another harddrive that has a FAT32 partition.
I want to write to this partition as a non root user but I can't seem to mount it so that it has write permissions for everybody. Only root seems to be able to write to it.

Here is the corresponding line from fstab:

/dev/hdb2 /media/shared vfat rw,user,auto 0 0

Does anybody know how to do this?

Thanks.
 
Old 08-13-2005, 10:19 PM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Try just this

/dev/hdb2 /media/shared vfat umask=000 0 0
 
Old 08-14-2005, 04:51 AM   #3
freakyg
Member
 
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705

Rep: Reputation: 30
Code:
/dev/hdb2 /media/shared vfat auto,owner,users,rw 0 0
 
Old 08-14-2005, 05:27 AM   #4
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
Lightbulb

I have FAT32 partition as a Backup on HDD.
First of all create folder you want to use as a partition, let's call it "Storage". Then
code in fstab file should read the following, assuming that root ID is 1000


Code:
/dev/hdb2    /Storage   vfat   uid=1001,gid=root,rw   1  1
 
Old 08-14-2005, 09:33 AM   #5
endfx
Member
 
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105

Original Poster
Rep: Reputation: 15
Thanks SlackerLX!

Works great.
I don't mean to be a pain in the ass but I don't understand why it is working.

Here is the line I added:
/dev/hdb2 /media/shared vfat uid=1000,gid=root,rw 1 1


The user I want to be able to have write access is 1000.
what does uid=1000 do?
and why are we setting the gid to root?

Thanks!
 
Old 08-14-2005, 10:02 AM   #6
SlackerLX
Senior Member
 
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832

Rep: Reputation: 47
User ID is the UNIX nimber of users on your BOX. root stands for 1000, first user you create -1001, AND SO ON. The code I gave you is correct one. Do not change UID, you'll mess up the permissions
 
  


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
Issues writing to Fat32 partition Samba Suse 10 usaf_sp SUSE / openSUSE 7 10-29-2005 02:17 PM
not writing to FAT32 Great_Mizuti Linux - Newbie 6 04-03-2005 05:46 PM
aMule and writing to FAT32 linmix Linux - Software 2 03-06-2005 12:09 PM
Writing to FAT32 Partition Xios Linux - Hardware 8 02-12-2005 12:21 PM
Writing to FAT32 and reading from NTFS in FC2 dysfunction Linux - Hardware 5 11-04-2004 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:19 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration