I'm not a linux expert and I would like to know how can I fix this situation:
there is an user called demo
which have as id 1000, this user is associated to www-data
group, so the demo
user can actually remove / edit / create all the files of a project, eg:
now suppose that I'm logged in with the user foo
which has the id 1001
. If I try to edit a file, eg: .env
I will get permission denied.
Is there a way to give the same permissions of the group owner (1000) to the user foo
?
So I can simply add the user foo
to the group of the demo
user, and then foo
can actually remove / edit / create as if the user were demo.
How can I achieve this?
Thanks in advance.
www-data
to all the the users of group 1000?