When a file or directory is created, its owner and group ownership are initially set. However, you can use chown to change the owner and chgrp to change the group ownership for sharing and other purposes afterward.
Example: # chgrp grp1 file ←Change the group ownership of the file to "grp1" # chgrp -R newgroup mydir/ ←Change the group ownership of "mydir" and all its contents to the "newgroup" |