I am quite new using Manjaro and this is basically my first time I create a new user and now I have two users: user1 and guest1. I need to share a folder between the users in order that each user can save, copy and paste folders and files into the shared folder. I used this procedure:
When I use any of the users and try to paste a folder or to save a file into the shared folder 0_dataA I become a error: “Error removing file /home/0_dataA/newfolfer. Permission denied.”
Now, I have no idea how to share a folder between user1 and guest1.
Another issue that I get with this procedure is that user1 does not have the administrator permissions anymore. It has standard permissions such as guest1. I think it is because I added user1 to the group compartidos.
Is there any procedure to share a folder between user1, conserving administrator permissions, and guest1, which only have standard permissions.
Any ideas and answer are very welcomed and I appreciated in advance!
Thank you linux-aarhus, the shared folder works very well now!
I only have an additional question regarding the permissions of user1.
In terms of security, is it required that user1 recovers the administrator permissions or can I leave user1 with standard permissions.
What is the advantage for user1 of having administrator permissions?
You could - but the first user is never member of users group - and from an administrative POV it is easier to control a group for the specific purpose than a default catchall group.
Yes you can - for as long as the user in question is added to the group accessing the shared_folder
Keep in mind that files created in the directory with those permissions do not inherrit those permissions which could result in the shared users not being able to access files of the other users…
I would instead suggest to use the setfacl command:
This will set the same permissions but also force new files/dirs to be modifiable by the share_group group
You could extend that to not needing any new share_group by repeating the d:g:share_group:rwX for every group of the users needed
Or even use usenames instead of groups by using d:u:username:rwX