All about changing ownership of files.
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 capabilites).
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.