LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
Search this Thread
Old 06-07-2004, 02:41 AM   #1
Linner
Member
 
Registered: May 2004
Distribution: Fedora
Posts: 71

Rep: Reputation: 15
Write access on FAT partition by ordinary user


hey guys, i have a permission problem re FAT partition, ordinary user cant write to it. i did the following command using root.

#chown john.john/files
and there i got this "error chown: changing ownership of `files/': Operation not permitted"

and i have a line like this in /etc/fstab
/dev/hdb2 /files vfat defaults 0 0

hope somebody could help me on this..again :-)


-----------------
*opss how could a delete this thread?..

my apology to everybody!

Last edited by Linner; 06-07-2004 at 02:54 AM.
 
Old 06-07-2004, 03:47 AM   #2
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
Normally, mounts are writable only by the user who mounted them (use the "users" option to allow mounting by any user).

To set a different permissions mask on the drive, use the "umask" option. Any permissions not in the mask will be set for the files on that mount. Since FAT doesn't have native permissions, the permissions of all the files on the FAT partition will be the opposite of what you set on in the mask.

For example, I use the options "umask=000,quiet,users" for floppy drives. What this means is:

"umask=000": let everybody do everything (equivilent to "chmod a=rwx" or "chmod 777", remember that dirs need to be executable)

"quiet": don't print out those annoying warnings about permissions, since FAT won't allow you to set them. (This is also why your chown command failed, BTW)

"users": allow anybody to mount the partition.

Whatever options you set go in place of the "defaults" in your fstab line.
 
Old 06-07-2004, 04:48 AM   #3
Linner
Member
 
Registered: May 2004
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
thanks solnul! actually, found the solution from a similar thread here, but your detailed explanation about this really helps.

Is it safe to use this solution on NTFS partition? well, little bit hesitant to experiment on this because dont want my xp files turn to mess.
 
Old 06-07-2004, 12:58 PM   #4
solnul
Member
 
Registered: Jan 2003
Distribution: Slackware
Posts: 82

Rep: Reputation: 15
The NTFS solution is the same.

Keep in mind that the Linux native NTFS driver is read-only. There is a driver for read/write, but it relies on wrapping the Windows dll.
 
Old 06-09-2004, 12:11 AM   #5
Linner
Member
 
Registered: May 2004
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by solnul
The NTFS solution is the same.

Keep in mind that the Linux native NTFS driver is read-only. There is a driver for read/write, but it relies on wrapping the Windows dll.
ok thanks so much for this, i decided not to, at least i can read now my linux partition using exflore2fs, its really a cute utility.

again, THANKS you're great!
 
Old 06-17-2004, 04:32 AM   #6
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
[QUOTE]Originally posted by Linner
[B]thanks solnul! actually, found the solution from a similar thread here, but your detailed explanation about this really helps.

COuld you point me to the thread that solved your problem? Thanks
 
Old 06-17-2004, 04:42 AM   #7
Linner
Member
 
Registered: May 2004
Distribution: Fedora
Posts: 71

Original Poster
Rep: Reputation: 15
ok. http://www.linuxquestions.org/questi...hreadid=180849

read tohembas post.
 
  


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
fat32 partition, ordinary users read/write quietbyday Linux - General 1 08-01-2005 11:31 PM
Can't write fat 32 partition Lier Linux - Hardware 5 02-16-2005 09:28 AM
Could I create a FAT partition that both WinXP and Linux could read/write to? EOHooligan Linux - General 4 01-25-2005 11:48 AM
write to windows fat partition as regular user feetyouwell Linux - Software 2 09-11-2004 03:07 AM
grant user access to /fat-c & copying users' preferences to another user n0x Linux - Newbie 1 07-04-2004 12:04 AM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration