change group in linux

How can i change group of the directory    /var/www/html  and subfolder belong to apache
teeraAsked:
Who is Participating?
 
BlazConnect With a Mentor Commented:
chown user:group /var/www/html

so:
chown :apache /var/www/html

http://www.hmug.org/man/8/chown.php
0
 
ygouthamConnect With a Mentor Commented:
to change the permissions for the directory and all the files and folders contained in it

chown -R user:group /var/www/html

to change only the group

chgrp -R apache /var/www/html
0
 
Arthur_MinoConnect With a Mentor Commented:
G'day,

And don't forget "chmod" to change the permission for "owner","group","everybody"

http://www.zzee.com/solutions/chmod-help.shtml

Hope this helps,

Cheers,

Arthur
0
 
LuxanaConnect With a Mentor Commented:
yet another howto:
http://www.linuxconfig.org/Chmod

:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.