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 - 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 02-14-2006, 09:39 AM   #1
rogerdv
Member
 
Registered: Jul 2005
Location: Cuba
Distribution: redhat
Posts: 52

Rep: Reputation: 15
Problem with mounted partition permissions (users cant read it)


I have a weird problem when mounting a fat32 partition in my recently installed gentoo. When I mount it, the folder /mnt/hd changes automatically its permissions and it becomes executable only by owner (root). Other users can read, but no execute, so they cant access the partition. I have tried all possible options in fstab, user, exec, users, umask=0000, 0002, 0222, but it is the same.
Can somebody give me an idea about how to solve this?
 
Old 02-14-2006, 02:48 PM   #2
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Quote:
Originally Posted by rogerdv
When I mount it, the folder /mnt/hd changes automatically its permissions and it becomes executable only by owner (root).
This is because you are mounting a file system over the existing directory and takes on the permissions given by the mount command.

Quote:
Other users can read, but no execute, so they cant access the partition. I have tried all possible options in fstab, user, exec, users, umask=0000, 0002, 0222, but it is the same.
Can somebody give me an idea about how to solve this?
The fat32 file system has no idea of file permissions, so all files are owned by the user mounting it (fstab = root).

There are a couple of ways to overcome this:

1) add a new group called 'fat32' and add the people that you want to have write permissions to the group; then add gid=fat32 to the options for the mount in fstab.

2) add the 'rw' option to the fstab entry.


If I'm right, the umask option are not applicable for fat32. See 'man mount' for details of options for each fs.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounted read-write Fat32 partition suddenly becomes read-only?? hohead Linux - General 8 04-05-2007 12:17 PM
Why don't I have permissions for my mounted samba partition ? web384 Linux - Newbie 5 04-06-2004 08:20 PM
Permissions problem in mounted vfat partition SparceMatrix Linux - Security 3 04-04-2003 04:19 PM
Permissions problem in mounted vfat partition SparceMatrix Linux - General 2 02-17-2003 02:49 PM
Change permissions on NTFS partition to read for all users bax Linux - Newbie 6 05-13-2002 07:35 AM

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

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