Multiple users accessing a directory - SOLVED

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
bushyiii
Level 4
Level 4
Posts: 258
Joined: Thu Apr 07, 2016 12:42 am

Multiple users accessing a directory - SOLVED

Post by bushyiii »

I have a family directory for recipes, there are multiple accounts on my desktop. Is there a suggested way to allow everyone access to this directory, the sub-directories and its files?

I expect it's somethings like assigning each person to a group but at this point I don't know anything about group and giving group access to the above. Any help in pointing me to some resource is appreciated.
Last edited by LockBot on Sat Aug 05, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
pit38
Level 1
Level 1
Posts: 8
Joined: Mon Dec 06, 2021 2:33 pm
Location: France

Re: Multiple users accessing a directory

Post by pit38 »

Hi
Create a group such as 'recipes', assign members to it and then as the proprietary of the directory and sub, change the group owner ship, assign the access rights and transfer this change to all objects below.
Can be done inside the terminal or through the gui : contextual menu of the main directory, permissions tab, don't forget the small box at the bottom so that the change applies to all files below.
Last edited by pit38 on Mon Feb 06, 2023 4:17 am, edited 1 time in total.
rene
Level 20
Level 20
Posts: 12212
Joined: Sun Mar 27, 2016 6:58 pm

Re: Multiple users accessing a directory

Post by rene »

Yes, the above, which is in practical terms to say

Code: Select all

$ sudo addgroup recipes
$ sudo adduser dad recipes
$ sudo adduser mom recipes
[ ... ]
$ sudo chown -R :recipes /the/recipe/directory
$ sudo chmod -R g+rwx /the/recipe/directory
A warning is that if /the/recipe/direcrtory is in e.g. /home/dad that as of Mint 21 private home-directories would still interfere. Best solution is to not have /the/recipe/directory in /home/dad but e.g. /mnt or something.
bushyiii
Level 4
Level 4
Posts: 258
Joined: Thu Apr 07, 2016 12:42 am

Re: Multiple users accessing a directory

Post by bushyiii »

Thanks to all this is a perfect solution. I'll mark as solved.
Locked

Return to “Beginner Questions”