35
Screwed up permissions, ownership, attributes on large fs. How to reset?
(lemmy.dbzer0.com)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
I think the main issue was that various applications that are involved have their own user account, but you put all those users in the
media
group so they are all supposed to be able to access each others files. But when they would create a new file, it never gets chowned to:media
, it is only owned by the group of the creating system user. I was trying to manage it so that all files owned by userjellyfin
would also be modifiable bymyuser
.I wanted this to be managed correctly by the file system or something but maybe once I can get a fresh slate, just make a script that constantly runs to
chown -R :media
might be more straightforward.Don't do that. I've done worse, but that's no excuse. You need to use the setgid bit (
chmod g+s
) of the parent folder and then look into the umask config option for whichever of your applications are creating files/directories... and what umask even is ofc lolI did try to setgid thing but maybe it made things worse and not better.
my conclusion also... I did kind of get to the understanding that the correct way to do this is with umask but everytime I think "I'm just going to sit down and learn about umask" I immediately am forced to admit defeat and give up. Which is why I didn't make a post about solving the original problem, rather just to try to dig out my current hole first.
It's not that difficult, and you don't need to become an expert — just find out what you need to achieve what you'd trying to do rn. Tbh I still use online calculators for permissions a lot of the time. Maybe see what you can find in the servarr wiki on the subject?