I am stuck at trying to change the owner of directory /var/www/html/* from user to group.
I want to make the group developers to be the owner of that directory and all sub-directories. Is it possible to make a group owner of directory instead of user in Ubuntu 14.04, and how ?
So far i tried chown :developers -R /var/www/html/* but it seems to be not working.
I hope you can help me.
Thanks in advance!
11 Answer
First of all files will still have user owner. They always have user and group owner. Anyway - to make group owner set to developers for all contents of your dir:
groupadd developers
chgrp developers -R /var/www/html/*This doesn't affect user owner.
5