20
submitted 2 weeks ago* (last edited 2 weeks ago) by Skullgrid@lemmy.world to c/linux4noobs@programming.dev

Debian 13.

I have an FSTAB config that auto mounts a second drive , NTFS fstype that used to be on windows (same laptop) UUID=666 /media/userName/Data auto defaults,nofail,x-systemd.automount 0 2

Because the /media/userName/Data path was made in a way that didn't transfer ownership to my user, and because I am clueless about user/group management on linux, Virtual machine manager and jenkins and all the other program based users that don't really get a "real" user I can manage on cockpit or similar (AFAIK) can't use that disk for writing information to and etc.

I already tried to change owner to a shared group in a shitty way that locked me out of that very important drive. Also, it doesn't seem to work anyway, and just fucking sets it back to root or ignores it when I try to do it.

What's the simplest change I can make to the fstab entry or ownership to make use of that drive for jenkins pipelines , steam games and most importantly, Virtual Machine Manager guest machines?

This shit scares me, and I have very little time, so I will get back to you guys in due time, and appreciate your assistance.

you are viewing a single comment's thread
view the rest of the comments
[-] Skullgrid@lemmy.world 1 points 1 week ago

I did set it to that, and the folder I am mounting to now has this :


$ ls -l
total 24
drwxr-x---+ 3 root root           4096 Aug 28 18:28 .
drwxr-xr-x  4 root root           4096 Jan 17  2026 ..
drwxrwxrwx  1 myUser  sharedFolders 16384 Sep 28 23:15 Data

$pwd 
/media/myUser

but when I login as otherUser, they cannot access the /media/myUser/Data folder. What could I be doing wrong?

[-] Successful_Try543@feddit.org 1 points 1 week ago* (last edited 1 week ago)

Which groups does your ordinary user belong to and which the one that cannot acces the path?

Does the group sharedFolders have permission on the folder /media/myUser/Data before you have mounted the device?

this post was submitted on 12 Oct 2026
20 points (100.0% liked)

linux4noobs

4534 readers
4 users here now

linux4noobs


Noob Friendly, Expert Enabling

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.


Seeking Support?

Community Rules

founded 3 years ago
MODERATORS