How to make a user able without root
to share a folder with given other user(s)
#60
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See #59.
The persons:
may be interested in a solution as the 2 formers do not seem to be aware of any.
So the aim is not to create a group for all (used) combinations of user permission access, even if teams to some extent work that way. We want subteams somehow.
DuckDuckGo search Linux give access to a user to a folder.
Benjamin_Loison/adduser/issues/1 would help.
In theory can leverage the
chown
other user group to have both users having access, but let us consider the cleaner more general case.I like recursivity so let us look for recursive approach.
Having to run again the permission grant on new recursive folder is fine in my opinion for the moment.
From
user_1
:on Debian 12 GNOME.
So the aim is not to have access to
/home/user_0/
but just the mentioned subfolder.Output:
As
user_0
:Source: the Ask Ubuntu answer 809562
does not return anything.
Output:
On
user_1
still face:As
user_0
:does not return anything.
As
user_1
:Output:
As
user_0
:so this is not perfect but it is a good start.
How can we figure out what users we gave access to?
DuckDuckGo search Linux list ACL.
As
user_0
:Output:
DuckDuckGo search Linux give access to a user to a folder without giving access to parent folder.
Maybe
x
may help, see the Unix Stack Exchange answer 541283, should just verify that someone is not able to execute a file he does not have access to.DuckDuckGo search Linux remove ACL.
The Unix Stack Exchange answer 347478:
Output:
Note:
Output:
does not return anything.
Output:
does not return anything.
Output:
Source: the Unix Stack Exchange answer 94217
does not return anything.
Output:
Output:
Output:
total 52K
drwxr-x--- 2 benjamin_loison benjamin_loison 4.0K Feb 22 13:17 new_folder
...
/home/user_0/test.sh
:As
user_2
:Output:
DuckDuckGo search Linux allow traversing directory.
The Super User answer 792908 seems to show how to leak metadata of files in parent folders only to the given user.
I verified the metadata leak issue from a fresh environment.
See the message: