Score:0

Help with understanding permissions for folders

mz flag

I'm rebuilding my Plex media server. I have a single HDD with my first installation of Ubuntu. I'm slowly moving media from an old external drive into folders; Documents, Music, Videos, etc.

I need to give Read/Write permissions to these folders for a group, but the group (media) isn't coming up. I can't make folders anywhere else (e.g. under Computer) using Gnome, and I'm not familiar enough with terminal commands to just try my hand at it.

Can anyone help me figure out either a) how to allow a group to access to these existing folders; or b) how to create a space for my media in another place, please?

Score:0
mz flag

I used Nautilus to create a folder inside snap and set it to 777. I'm not sure if that's the best way to accomplish what I want to do, but it worked.

Score:0
bd flag

This article should clear things up for the future: https://phoenixnap.com/kb/linux-file-permissions

First, you should check if you actually created the group via:

cat /etc/group | grep "media"

You should get an output like:

groupname:x:groupid:users

In order to give whole group permissions to a file or folder, you need to use chown, but recursive since you don't just want to give the permissions to the folder, but to all the sub-folders and files. So it's:

chown -R :groupname /path/to/folder

Note that sudo might be required if you are not the owner of the folder. You can check the current permissions and the ownership via:

ll /path/to/folder

Hope that helped you, maybe check out the manpage for chown ;)

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.