Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 5
    "both users must own the sub-directory" - this isn't possible: you can only have one owner. Instead, please describe (in words) what you want to achieve Commented Jan 7, 2024 at 23:39
  • @ChrisDavies Essentially, I want storageUser to be the main owner of /storage, but also have a second media user that can only read the media subdirectory. This is so that storageUser can edit, upload, and delete files, but I want to give access to other people to only be able to view/download from the media folder Commented Jan 8, 2024 at 2:22
  • 5
    @Omaro_IB Welcome, the whole concept of a user's home directory is that such user is the owner with their own settings, configurations and files. The goal you want to achieve doesn't seem related to home directories, but just group. permissions and ownership. Commented Jan 8, 2024 at 3:05
  • Try creating 2 users, each with their own home directories, even if they are never used, and then put both users you created in the same group. Give members of that group rwx access to the same directory OUTSIDE OF the /home/ directory. This is what @shrodingerscat is referring to. Commented Jan 8, 2024 at 22:47
  • 1
    @Omaro_IB - what perms did you set on /storage? And the perms on /storage/media need to be 750, not 740. Commented Jan 9, 2024 at 5:06