First page Back Continue Last page Summary Graphic
chgrp Command
Assume that I want to give group access to flush.cc and flush, while denying access to the rest of the world.
The UNIX command chgrp group file will change group ownership of a file.
csdev01% chgrp smp045 flush flush.cc
csdev01% ls -l
-rwx------ 1 sholtz smp045 11944 Sep 7 14:24 flush
-rw------- 1 sholtz smp045 3124 Sep 7 14:23 flush.cc
Now both files are owned by the smp045 group, which is just what we want. But they are still not accessible by group members because the file permissions deny group members access.