LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-28-2005, 12:10 AM   #1
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
How to Adjust permissions for a mounted windows fat32 filesystem


I have a windows filesystem mounted, which mounts at bootup.

When logged in as a user (not root), I can view and navigate through the folders but cannot copy files to it.

have tried chmod a=rwx foo but it doesn't change the permissions

Has anyone got a solution to allow a user to be able to write to the windows file system?
 
Old 08-28-2005, 01:13 AM   #2
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
writing to a mounted windows filesystem is still not practical, especially if its an ntfs one. for an ordinary user to copy files from win partition, you have to log in as root and change the permissions of the mount point 644. this will make copying files possible.
vimal.....
 
Old 08-28-2005, 01:21 AM   #3
TheGiantPotato
Member
 
Registered: Dec 2003
Location: Kansai, Japan
Distribution: LFS, FedoraCore
Posts: 35

Rep: Reputation: 15
Modify fstab

I had the same problem.

To fix this, modify /etc/fstab to include "umask=000". Here's what (some of) mine looks like:

Code:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
/dev/hdb3               /WinXP                  vfat    users,umask=000 0 0
/dev/devpts             /dev/pts                devpts  gid=5,mode=620  0 0
/dev/shm                /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults        1 2
/dev/proc               /proc                   proc    defaults        0 0
/dev/sys                /sys                    sysfs   defaults        0 0
LABEL=SWAP-hdb5         swap                    swap    defaults        0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0
/dev/hdc                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
I showed you most of the file so you won't be intimidated by seeing the whole thing if you've never opened it before.

Pay special attention to the third line, starting with /dev/hdb3 . This is the line that indicates my shared vfat (FAT32) partition. Most of my partitions say default after the file system type, but this one in particular says users,umask=000. That is what gives the entire volume read, write and execute permissions to everyone.

That is not a secure way of doing things, particularly if you are sharing the entire windows tree, including whatever volume stores the windows system files. Someone (in this case anyone) could write a virus, corrupt data, delete, etc the entire volume. So be sure this is a separate, shared partition, not a part of your Windows system tree.

FAT partitions do not support individual file and folder permissions, so there is no way to grant a specific user permissions of any sort to a specific file or folder. That means that whatever permissions you grant for the volume exist throughout the entire volume. So be choosey unless you are in a situation where you know everyone who is using that particular system (like in my case where it is just me and my girls... at home, not in an office full of people). In addition, since VFAT does not really support permissions, the Linux system itself is doing the granting, based on whoever mounted the partition. In the case of an installation-script produced fstab, the volume is mounted at boot time, which means the user listed as mounting it is root. After mount, noone can genuinely modify the file permissions with chown (or any other ch~ command) because the file system does not support this use. So you're stuck with root and only root being able to edit anything on the shared partition.

That's one of the big reasons we've moved away from VFAT... including MS's shift to NTFS. That's the sort of inconsistency you get when you have a file system that was designed for a non-networked Disk Operating System (i.e. single-user system) where the only security layer is physical access and single-superuser login to the system that must operate in an environment that is suddenly security-oriented and highly networked.

If you want to know more, and get more in-depth modifying exactly who can do what on your system, do some research on the fstab file, and exactly what all the numbers and permission tags mean.

Last edited by TheGiantPotato; 08-28-2005 at 01:23 AM.
 
  


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
mounted fat32 filesystem becomes readonly after sometime, wierd? koodoo Linux - Newbie 6 11-23-2005 11:34 PM
Can't change permissions for mounted windows partition shara Linux - Newbie 6 03-24-2004 06:31 PM
How to change permissions for Mounted Filesystem leroy27336 Linux - General 3 11-15-2003 03:08 AM
permissions and mounted fat32 partition ianunderwood Linux - Newbie 8 06-25-2003 05:17 AM
Permissions on FAT32 mounted disks in RH 8 Hdata Linux - Newbie 9 04-21-2003 01:50 PM


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