Results 1 to 8 of 8

Thread: Accessing vfat as non-root

  1. #1
    Advisor
    Join Date
    Apr 2002
    Posts
    858

    Accessing vfat as non-root

    I have a vfat (fat 32) partition that I access from linux, but only root can write to it. I would like it so that my user can read and write to the entire partition, how can I set this up? or is it even possible?

  2. #2
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:Accessing vfat as non-root

    well, in your /etc/fstab you can put in 'defaults' and it should work (Use default options: rw, suid, dev, exec, auto, nouser,and async)

    Otheriwise via CLI :: mount -o defaults /dev/source /mnt/destination

  3. #3
    Advisor
    Join Date
    Apr 2002
    Posts
    858

    Re:Accessing vfat as non-root

    That doesn't wanna do it, I still get permission denied when it's mounted with the default option.

  4. #4
    Moderator
    Good Guru
    Schotty's Avatar
    Join Date
    Jul 2001
    Location
    Milwaukee, WI
    Posts
    5,760

    Re:Accessing vfat as non-root

    what are the mountpoints permissions?

    Check to see if the folder is too highly secured. You may have no access allowed to non owner and non group members. A chmod should fix that

  5. #5

    Re:Accessing vfat as non-root

    try this in fstab
    /dev/hda1 /dos ntfs defaults,user,ro,umask=002,gid=100 0 0

  6. #6

    Re:Accessing vfat as non-root

    Hi,

    To allow users read write access to a fat partition, obtain the user id and or group id and use that information in the fstab file.

    In these examples, the uid is 500 and the gid is 500. That can be different in your case. If you use the gid, it will apply to everyone in that group which is easier to maintain.

    1. /dev/hdb1 /mnt/win vfat gid=500, umask=002 0 0

    2. /dev/hdb1 /mnt/win vfat gid=500, umask=002, exec, dev, suid, rw 1 1

    3. /dev/hdb1 /mnt/win vfat uid=500, gid=500, umask=002, exec, dev, suid, rw 1 1

  7. #7

  8. #8
    Advisor
    Join Date
    Apr 2002
    Posts
    858

    Re:Accessing vfat as non-root

    Got it working using what homey suggested, thanx guys!

Similar Threads

  1. recover vfat pictures
    By countach44 in forum Linux - Software, Applications & Programming
    Replies: 1
    Last Post: 09-01-2009, 04:49 PM
  2. Accessing the PC I ssh from... how to?!?!
    By azgs in forum Linux - General Topics
    Replies: 2
    Last Post: 12-01-2007, 01:21 AM
  3. problem when mounting a vfat partition
    By hass85 in forum Linux - General Topics
    Replies: 5
    Last Post: 02-10-2005, 02:05 AM
  4. VFAT
    By Gaweph in forum Linux - General Topics
    Replies: 8
    Last Post: 03-05-2004, 01:47 PM
  5. Made mke2fs on vfat partition, want it back..
    By x in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 01-15-2003, 06:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •