Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.