You are not logged in.

#1 2017-06-06 22:28:12

xc0brax
Member
Registered: 2017-06-06
Posts: 1

fstab file setup

Hi guys !

I am trying to mingle with fstab since I am trying to mount on startup a few HDD's but have not been successful. so I want to ask what is the possible setup to mount all the hard drives with all access to my regular user e.g. USER1. It seems that my regular user has access to view and read but not to write on any of the mounted file systems. I went through https://wiki.archlinux.org/index.php/NTFS-3G not sure if I am missing something.


here is my line from fstab:
/dev/sdb2    /home/user1/Hdd1    ntfs-3g    umask=0775,uid=1000,gid=100,rw    0 0

I've tried also
/dev/sdb2    /home/user1/Hdd1    ntfs-3g    defaults    0 0
/dev/sdb2    /home/user1/Hdd1    ntfs-3g    uid=user1,gid=users,rw    0 0
/dev/sdb2    /home/user1/Hdd1    ntfs-3g    uid=user1,gid=users,dmask=022,fmask=133     0 0

Last edited by xc0brax (2017-06-06 22:40:50)

Offline

#2 2017-06-06 22:32:53

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: fstab file setup


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-06-06 23:12:31

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: fstab file setup

You have the right bits but in the wrong combinations. The uid and gid are numeric values (as you have used in your current fstab). Check them with the id command.

For the permissions and masks, you need to carefully read this first. Then you need to understand that a mask restricts permissions, e.g. applying your mask of 0775 to e.g. 0777 results in the permissions 0002, i.e. your user and group cannot read, write or execute the path, but everyone else and write it (but not read it or execute it).


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB