All about changing ownership of files.

The chown command can be used to change the ownership of files and directories. Changing file ownership requires superuser privileges, or at least the CAP_CHOWN capability (see ).

There is also the chgrp commant to chang the group ownership of files. However, on Linux and most modern Unix systems chown can be used to change file ownership, group ownership, or both.

Use this tag if you question is related to changing ownership of files.

Note: the tags or probably apply as well or are even more appropriate.

External reference

chown specification (The Open Group Base Specifications Issue 7, 2018 edition)