LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 05-17-2006, 05:50 PM   #1
linuxlimbo
Member
 
Registered: Dec 2004
Posts: 43

Rep: Reputation: 15
Want fat32 drive to be available to all users


I installed a 40gig HD on my system and formatted it with FAT32. I currently have a dual boot system (Suse 10/Win2k). My idea was that the drive could be used by both Windows and Suse. I finally have it where I can write to it when I am logged is as root, but not as a regular user. I right click on the drive and go to properties. I changed the permissions for "group" and "others", but when I go back later, the permissions are back to "view content only".
 
Old 05-17-2006, 05:58 PM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
In /etc/fstab, you should have a line that looks something like this:

Code:
/dev/hda2       /mnt/windata1   vfat    rw,owner,user,umask=000,auto    0 0
umask=000 is the key element.
 
Old 05-18-2006, 10:30 AM   #3
apachedude
Member
 
Registered: Aug 2004
Location: California
Distribution: SuSE 10.0 (SUPER)
Posts: 356

Rep: Reputation: 31
Rickh, just wondering, how come sometimes on my FAT partition mounted with same options as you have, I still don't have permission to modify a file? After chmod 777, it works fine.

I thought umask=000 kind of "negated" any permissions?
 
Old 05-18-2006, 10:43 AM   #4
slackMeUp
Member
 
Registered: Nov 2003
Distribution: Slack-where?
Posts: 654

Rep: Reputation: 30
Two things:

One, "umask=000" works, but so does "umask=0". The trailing two zeros are not needed.

Two, this makes the directory contents (but not the mount point, that is done with chmod) open to all users on the system, which is what you want. Remember that fat32 does not have unix permissions built in on the file level, for that you need umsdos which is a fat-hack that adds a text file to each directory with a list of contents and their respective unix permissions.

Using umsdos allows you to install and run a linux system from a fat partition. (not advised) Such an example is ZipSlack.
 
Old 05-18-2006, 12:34 PM   #5
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Quote:
One, "umask=000" works, but so does "umask=0".
I don't want to argue whether it should be umask=000 or umask=0. The later works perfectly on my Ubuntu system, but I have heard of problems with suse requires all three bits to be set.

The way umask works is simple: As it has been said before, fat32 doesn't know permissions. This means you can only set global permissions for the whole filesystem. umask "substracts" from full Unix permissions (chmod 777). So if you'd like to restrict access to members of the mounting group, you need to change the second and third bit, e.g. umask=022 to give chmod 755 permissions.
 
Old 05-18-2006, 09:44 PM   #6
crazibri
Member
 
Registered: Mar 2004
Location: Orange County, CA
Distribution: OS X, SuSE, RH, Debian, XP
Posts: 377

Rep: Reputation: 31
Just to help, I use this for my fat32 and it works perfectly.

Code:
/dev/hda5            /windows/D           vfat       users,gid=users,umask=0002,utf8=true 0 0

This was what Suse automatically configured my fstab as when I installed Suse 10 however long ago when 10.0 came out.
 
  


Reply

Tags
fat32, fstab, zipslack



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fstab fat32 --> writable by all users jasone Linux - Newbie 3 12-14-2010 02:16 AM
mounting fat32 /w write rights for users bobbens Linux - Newbie 4 10-05-2004 04:30 AM
Users can't access FAT32-Partition thorax Linux - Software 3 07-23-2004 02:32 PM
Cannot Copy Files From Network FAT32/NTFS Drive to My Local Linux Drive michaelh Linux - Networking 3 10-29-2002 10:27 AM
Mounting a FAT32 drive to be Read_write_execute for all users? Please help shassouneh Linux - Hardware 7 05-19-2002 08:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 04:13 AM.

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