20
/etc/fstab bing a very important NTFS drive on boot
(lemmy.world)
Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.
The options
userandusersallow any user to mount or unmount that device. It doesn't mean that they actually have some permission for reading from or writing to that device. Afaik, the optiongroups=<gid>doesn't exist.I changed the fstab to :
UUID=666 /media/myUser/Data auto defaults,nofail,x-systemd.automount,uid=1000,gid=1000 0 2then did the following (among others)
I also did try with
setfacl -g g:sharedFolders fart.txtand it still didn't change the group.
/media/myUser/Data/docs/Subfolder/Againis the path. The other user did mention that because this is an NTFS drive so it won't work, are they right?
Yes, the
uidandgidyou are setting infstabsimulate a linuxuid:gidstyle ownership of the files an directories on the device. They can't be changed.You may create a group, let's call it
ntfsusers, and add the users that need to use the files and directories on the ntfs partition to that group and assigngidwith the group id ofntfsusersinfstab.that's what I meant with this :
I already have a group like that, sharedFolders, if I use the ID from that eg :
and modify FSTAb like this :
UUID=666 /media/myUser/Data auto defaults,nofail,x-systemd.automount,uid=1000,gid=1003 0 2would that work?
At least the files and directories should then have the right ownership.
I did set it to that, and the folder I am mounting to now has this :
but when I login as otherUser, they cannot access the /media/myUser/Data folder. What could I be doing wrong?
Which groups does your ordinary user belong to and which the one that cannot acces the path?
Does the group
sharedFoldershave permission on the folder/media/myUser/Databefore you have mounted the device?