1

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?

Chris Dale
  • 1,553
  • 2
  • 12
  • 22

1 Answers1

4

Use the chgrp command instead.

Ignacio Vazquez-Abrams
  • 45,019
  • 5
  • 78
  • 84
  • 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 07 '11 at 12:32