chown – change file owner and group
chown [-fhv] [-R [-H -L -P]] owner[:group] file …
chown [-fhv] [-R [-H -L -P]] :group file …
The chown utility changes the user ID and/or the group ID of the specified files. Symbolic links named by arguments are silently left unchanged unless -h is used.
The options are as follows:
- Change the user ID and/or the group ID for the file hierarchies rooted in the files instead of just the files themselves.
- To change the ownership recursively.
chown -R username:username /home/looker/.ssh/id_rsa.pub && chmod 644 /home/looker/.ssh/id_rsa.pub