Changing the group of a file
You can change the group of a file using the chgrp command
if you are the owner of that file. If you need to change the group
of a file that you do not own, you must ask the owner of the file to
do this. You can also ask your system administrator, who can use
the
superuser
(root) account to modify any file.
To change the group of a file, type chgrp, the name of the new group, the name of the file, and press <Enter>. For example, to change the group of the file report to a group called unixdoc, you could type:
$l report-rw-r----- 1 susannah techpubs 25 Jun 27 11:58 report $chgrp unixdoc report$l report-rw-r----- 1 susannah unixdoc 25 Jun 27 11:58 report