LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-07-2005, 11:43 PM   #1
soimless
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Rep: Reputation: 0
File Permissions Problem with a Fat Partition


Hello, I have a Fat Partition that is automatically mounted at start up as /share. I want all users to have rwx permissions so I opened a terminal and typed sudo chmod -R 777 /share it finished with no errors but when I tried to modify a image in /share/souls/11.26.2005 I was unable to rewrite the file. ls -l shows that all the folders and files in /share are still 755. I tried sudo chmod -R 777 again and still they all are 755.

Is there something about changing the permissions with a diffrent partition that I am missing?
 
Old 12-07-2005, 11:47 PM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
I think, you have to change the permissions in /etc/fstab. No access to a linux machine with a FAT partition at this moment, so I'm not sure what the exact line must be.

See my post in http://www.linuxquestions.org/questi...d.php?t=292847 for an example and explanation of the correct line.

Last edited by Wim Sturkenboom; 12-08-2005 at 01:28 AM. Reason: added the link
 
Old 12-08-2005, 12:57 PM   #3
brainiac
Member
 
Registered: Jan 2005
Location: middle of a cornfield, IL
Distribution: Kanotix HD Install, Debian Testing, XP Pro,Vista RC1
Posts: 145

Rep: Reputation: 15
I had some of the same issues. Linux file permissions don't really mean anything to a Windows partition. I fixed my problems in fstab using "default" instead of trying to tell it what I thought they should be. My line appears as /dev/hdc5 /mp3 vfat defaults 0 0 and it works for me.
 
Old 12-08-2005, 01:20 PM   #4
soimless
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
That's exactly what I have in /etc/fstab.
/dev/sda2 /share vfat defaults 0 0
 
Old 12-08-2005, 01:49 PM   #5
geeman2.0
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo, Slackware
Posts: 345

Rep: Reputation: 30
Try replacing "defaults" with "rw,umask=000"
 
Old 12-08-2005, 02:07 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
Quote:
Originally Posted by geeman2.0
Try replacing "defaults" with "rw,umask=000"
I would only add one more thing and it has worked for me always...

Code:
users,rw,umask=000
 
Old 12-08-2005, 02:32 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,156

Rep: Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204Reputation: 2204
The FAT32 disk format does not contain any space for "permissions," or "user" or "group," or all those other nice Unix ideas. Only the concept of "read-only" files and "hidden" files. So, when you mount such a partition, Linux has to fake-it. Usually, the files on the device are either writeable to everyone or they appear to "belong to" whomever mounted the drive.

FAT32 is simply a filesystem where ... security does not exist.
 
Old 12-08-2005, 03:59 PM   #8
soimless
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
It did something.

users,rw,umask=000 did something, /share now appears as apart of my computer, like a cd drive in gnome. but I still can't write to it as a regular user. I also tried sudo chmod -R 777 /share again it paused for a wile and still did nothing.
 
Old 12-08-2005, 06:45 PM   #9
soimless
LQ Newbie
 
Registered: Nov 2005
Posts: 4

Original Poster
Rep: Reputation: 0
nevermind, when I restarted I got the Permissions. Thank you all
 
Old 12-08-2005, 11:48 PM   #10
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by sundialsvcs
The FAT32 disk format does not contain any space for "permissions," or "user" or "group," or all those other nice Unix ideas. Only the concept of "read-only" files and "hidden" files. So, when you mount such a partition, Linux has to fake-it. Usually, the files on the device are either writeable to everyone or they appear to "belong to" whomever mounted the drive.
Very true, but you can still limit the access to the partition itself. And that's what was the case for TS and he/she did not like it.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
FAT 32 access permissions problem gilbertt Linux - Hardware 8 11-10-2005 02:01 PM
cant modify a file on mounted FAT partition dwarf007 Linux - Newbie 7 09-24-2004 09:02 AM
writing a file to a FAT partition Cman Programming 8 09-21-2004 05:25 PM
Fat partition permissions doralsoral Linux - Software 11 02-04-2004 11:50 AM
problem changing file permissions on fat32 partition coolamit78 Linux - Software 4 01-18-2004 02:44 PM


All times are GMT -5. The time now is 12:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration