How to make group owner of /var/www/html/*

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!

1

1 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

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like