Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-07-2004, 02:41 AM
|
#1
|
Member
Registered: May 2004
Distribution: Fedora
Posts: 71
Rep:
|
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.
|
|
|
06-07-2004, 03:47 AM
|
#2
|
Member
Registered: Jan 2003
Distribution: Slackware
Posts: 82
Rep:
|
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.
|
|
|
06-07-2004, 04:48 AM
|
#3
|
Member
Registered: May 2004
Distribution: Fedora
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
06-07-2004, 12:58 PM
|
#4
|
Member
Registered: Jan 2003
Distribution: Slackware
Posts: 82
Rep:
|
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.
|
|
|
06-09-2004, 12:11 AM
|
#5
|
Member
Registered: May 2004
Distribution: Fedora
Posts: 71
Original Poster
Rep:
|
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!
|
|
|
06-17-2004, 04:32 AM
|
#6
|
Senior Member
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Rep:
|
[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
|
|
|
06-17-2004, 04:42 AM
|
#7
|
Member
Registered: May 2004
Distribution: Fedora
Posts: 71
Original Poster
Rep:
|
|
|
|
All times are GMT -5. The time now is 02:48 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|