LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 10: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, 10:47 PM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

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 12:28 AM. Reason: added the link
 
Old 12-08-2005, 11:57 AM   #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, 12: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, 12: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, 01:07 PM   #6
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
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, 01:32 PM   #7
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
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, 02: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, 05: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, 10:48 PM   #10
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

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



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 01:01 PM
cant modify a file on mounted FAT partition dwarf007 Linux - Newbie 7 09-24-2004 08:02 AM
writing a file to a FAT partition Cman Programming 8 09-21-2004 04:25 PM
Fat partition permissions doralsoral Linux - Software 11 02-04-2004 10:50 AM
problem changing file permissions on fat32 partition coolamit78 Linux - Software 4 01-18-2004 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:23 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