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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-13-2005, 09:56 PM
|
#1
|
Member
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105
Rep:
|
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.
|
|
|
08-13-2005, 10:19 PM
|
#2
|
Senior Member
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775
Rep:
|
Try just this
/dev/hdb2 /media/shared vfat umask=000 0 0
|
|
|
08-14-2005, 04:51 AM
|
#3
|
Member
Registered: Apr 2005
Distribution: LFS 5.0 and 6.1
Posts: 705
Rep:
|
Code:
/dev/hdb2 /media/shared vfat auto,owner,users,rw 0 0
|
|
|
08-14-2005, 05:27 AM
|
#4
|
Senior Member
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832
Rep:
|
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
|
|
|
08-14-2005, 09:33 AM
|
#5
|
Member
Registered: May 2003
Location: Canada
Distribution: Debian
Posts: 105
Original Poster
Rep:
|
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!
|
|
|
08-14-2005, 10:02 AM
|
#6
|
Senior Member
Registered: Dec 2004
Location: Herzliyya, Israel
Distribution: SuSE 10.1; Testing Distros
Posts: 1,832
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 06:19 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|