Modifying file permissions
Previous  Top  Next

Now we have to tell our directory that we have group we want to assign to it (and it's subdirectories). By default the group root is assigned to that directory, but we don't want that. The html files for our apache server are in the /var/www/html directory, so we have to go /var/www and change the group:

cd /var/www
chgrp –R htmladmins html


And that's it! So now every file and directory below (or above, depends on how you see it) has htmladmins as it's group. Now we change the file permissions and give full rights to our new group. We type

chmod –R 775 html

And off we go, it's done. If you wonder what the –R switch means … it stands for Recursive and applies to all subdirectories as well. Bueno.