Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I want to make sure all directories and sub directories are of the group hgdata, but I do not want to change owner's (they are many different owners).

The command chown -R will do the recursive ownership change for me, but how do I use chown without the userid supplied?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Use the chgrp command instead.

share|improve this answer
1  
I just discovered you can do chown with an empty owner chown -R :group. But would definitely recommend doing chgrp instead of that :) –  Alex Jun 7 '11 at 12:32
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.