I know this has been asked a few times on here but I am still a little confused exactly how to achieve this. I have two users, root/sudo and www-data. I want both of these users to be added to a group and then assign ownership of a folder to that group.
What I have tried so far, and where I am getting confused:
I ran this:
sudo addgroup admins
then
sudo adduser root admins
sudo adduser www-data admins
followed by
sudo chown :admins /myfoldeame
of course replacing /myfoldeame with the actual directory.
However the result is that both users do not have access anymore.. So I feel like I am missing something?
برچسب:
نویسنده: استخدام کار