Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

fstab

  • 30-05-2002 3:34pm
    #1
    Registered Users, Registered Users 2 Posts: 347 ✭✭


    Hi,
    using redhat, trying to mount a fat partition created from windows. It'll mount the
    thing as root, but I can't get it to let normal users write to the partition, what am I doing
    wrong? I don't seem to be getting the man page right

    Here's my fstab entry

    /dev/hda5 /mnt/E vfat detaults 0 0


    thanks.


Comments

  • Registered Users, Registered Users 2 Posts: 4,660 ✭✭✭Gavin


    /dev/hda5 /mnt/E vfat detaults,users 0 0

    possibly is it. Have a look around for the exact syntax.

    Gav


  • Closed Accounts Posts: 1,026 ✭✭✭sisob


    could just be a typo but that should be defaults


  • Registered Users, Registered Users 2 Posts: 70 ✭✭BTBB


    'users' is a bad idea as normal useres are able to unmount it.

    I'm at the wrong system at the moment but check the manpage for fstab. I'd suggest 'user' but i'd have to check the manpage.

    BTBB


  • Registered Users, Registered Users 2 Posts: 3,308 ✭✭✭quozl


    fat32 doesnt support security/file ownership. So when that partition is being mounted in fstab its being mounted as root. Other users can't access a filesystem owned by root of course.
    Dont use ,users. That will let users mount and unmount it, thats unlikely to be what you want, its a pain in the hole. Instead you can mount it as a specific group, i think the paramater is
    gid=6 or whatever the group id. You can mount it as a specific user too, with uid=x.
    So mount it as group 'disk' (using the number not the name), or add a new group to etc/groups and mount it as that. Then add any users you want to be able to access it to that group, and make sure that the disk is not only mounted as being of that specific group, but has its permissions set to allow members of the group full access permissions.
    I cant remember the param to do this, just man fstab.
    quozl


Advertisement