GO KALI FREE
Permission Commands

chgrp Linux Command

Changes the group ownership of a file or directory.

What does chgrp do?

Changes the group ownership of a file or directory.

Syntax

chgrp [options] group file

Practical example

sudo chgrp developers file.txt

Related Permission Commands

chown

Changes the owner and/or group of a file or directory.

umask

Sets the default permission mask for newly created files and directories.

chmod

Changes the read, write, and execute permissions of files and directories.

getfacl

Displays the Access Control List (ACL) of a file or directory.

visudo

Safely edits the /etc/sudoers file to configure sudo permissions.

setfacl

Sets or modifies the Access Control List (ACL) for a file or directory.