Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 09-04-2003, 10:27 AM   #1
Registered: Jul 2003
Location: USA
Distribution: Slack 12.2 and Ubuntu 9.04
Posts: 61

Rep: Reputation: 15
file permissions on VFAT partition - access denied

WHen I log in as root I CAN SEE all of my files/dir in a fat partition.
WHen I login as a user and try to access those same directories, it gives me back the message asscess denied. However I checked the permissions and OTHER has r read permissions.

I tried changing the permissions to chmod o+rwx "My Documents" , just in case...but it doesn;t allow me to change the permissions.

One more a regular user I checked the properties for the directories I want access to and it says it is an unknown type.

WHats the deal??? Please help.

Old 09-04-2003, 11:51 AM   #2
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To change permissions on a non-Linux partition, you will have to edit /etc/fstab by adding the umask option to the FAT entry.
Here is an example of syntax:
/dev/hda1                /mnt/windows98             vfat    defaults,user,umask=022 0 0
Old 09-04-2003, 03:50 PM   #3
Registered: Jul 2003
Location: USA
Distribution: Slack 12.2 and Ubuntu 9.04
Posts: 61

Original Poster
Rep: Reputation: 15
thanks, before I got your response I tried the following and it seemed to work:
/dev/hda6 /fatmydoc vfat uid=1033 1 0

where uid=1033 is the user id of my username. although this doesn't help if I need username2 to access this same partition.

can you tell me what the the umask feature would do....and am I completely wrong with the above statement. It works fine now but I would not want to have problems down the road.

Thanks again,
- C
Old 09-04-2003, 04:50 PM   #4
LQ Newbie
Registered: Sep 2003
Location: Dallas, TX
Distribution: RHL 9, RHEL 2.1/3
Posts: 2

Rep: Reputation: 0
umask normally controls the default permissions on a newly created file. A umask of 022 will give you a -rw-r--r-- file, so that only you can modify the file while other can read it. A 002 will give you a -rw-rw-r-- file, this allows members of the same group to modify your file.

In this case it is controlling the default mask of the files in the file system. If you use the method above all users will be able to access the files in the vfat partition.



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
vfat partition user permissions trawler Linux - General 3 10-25-2005 06:34 AM
vfat partition access denied demmylls Linux - General 1 01-19-2004 02:09 AM
Spurious change of permissions on a VFAT partition under SuSE 8.2 R4cOOn Linux - General 2 10-24-2003 11:26 AM
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 > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration