Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th May 2007, 12:11 AM
dunff2k Offline
Registered User
 
Join Date: Mar 2007
Posts: 8
Permissions

Hey guys

I have a FAT32 partition mounted at
Code:
/media/vfat1
I can read files from this, however only root can write to it due to permissions. The root group can access files.

I tried adding myself to the root group and assigning this writing priviledges to no avail,

Any ideas?

Paul
Reply With Quote
  #2  
Old 30th May 2007, 12:25 AM
danwaineo's Avatar
danwaineo Offline
Registered User
 
Join Date: Nov 2005
Location: Portland, OR
Posts: 243
I'm pretty sure you need to change the permissions of /media/vfat1 so that you have write permissions.

When I do stuff like this I usually make myself the owner and users the group. Then I add myself and any other users I want to access /media/vfat1 to the "user" group. This can be done using:

System --> Administration --> Users and Groups

Then I would give the "user" group right acess to /media/vfat1 by:

chmod g+w /media/vfat1

There are lots of other ways of doing this, but I would caution against adding yourself or anyone else to the "root" group. You can screw things up that way.

Hope this helps.
Reply With Quote
  #3  
Old 30th May 2007, 10:19 AM
dunff2k Offline
Registered User
 
Join Date: Mar 2007
Posts: 8
thanks for your response

This still doesn't work though.

I don't receive any errors from changing the permissions as you suggested, but the change is never reflected. changing the group has the same effect. the owner is always root with read and write access, group is root with read access

I am working as root. Also trying to change the owner gives me the message that "operation is not permitted"

Would it make a difference that vfat1 is a folder and not a file?

Paul
Reply With Quote
  #4  
Old 30th May 2007, 10:42 AM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,076
You can't change file/directory ownership or permissions on VFAT partitions by normal means. If the partition is mounted at boot by using /etc/fstab, you must set the mount options in that file.
Reply With Quote
  #5  
Old 30th May 2007, 10:43 AM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
Create a directory /mnt/vfat1, put this line in /etc/fstab (replace /dev/hda1 with your vfat partition)
Code:
/dev/hda1   /mnt/vfat1     vfat    defaults,rw,umask=0000  0 0
and type 'mount -a'. Now access the drive via /mnt/vfat1
Reply With Quote
  #6  
Old 30th May 2007, 09:49 PM
dunff2k Offline
Registered User
 
Join Date: Mar 2007
Posts: 8
thanks that works great

What do the parameters after and including the "defaults" part actually mean?

I can see what the earlier bits mean

Paul
Reply With Quote
  #7  
Old 30th May 2007, 10:06 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
http://www.tuxfiles.org/linuxhelp/fstab.html

the umask=0000 is the important bit here, it allows all users full access.

fat32 has no concept of ownership, so no point trying to specify ownership on specific files/directories.

The "0 0' bit at the end means the dump utility will ignore the partition, and fsck won't try to check it on boot (which is what you want)
Reply With Quote
Reply

Tags
permissions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Permissions mwinn22 Using Fedora 5 1st March 2009 06:21 PM
NFS permissions newmab Using Fedora 3 2nd July 2007 06:02 AM
httpd permissions, hda1 User permissions, Cake? Fault Using Fedora 7 1st August 2006 07:12 PM
SSH permissions desipher Servers & Networking 2 7th September 2005 03:56 PM


Current GMT-time: 05:25 (Sunday, 26-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat