Sign up ×
Server Fault is a question and answer site for 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

1 Answer 1

up vote 4 down vote accepted

Use the chgrp command instead.

share|improve this answer
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


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.