chown


Change file owner and group
Change the user and group of one or more elements (files and directories). The -R option makes it recursive (useful for changing the permissions of a directory and all or some of its files).

Syntax

chown [OPTION] [OWNER]:[GROUP] ELEMENT


EXAMPLES

chown root /u

chown root:staff /u

chown -hR root /u

#Need_Citation
Setting Permissions with chown and chmod | Baeldung on Linux