To change the file ownership execute the following command:
chown -R username somedirHere, R stands for recursive because this command will recursively change the ownership of directories and their contents. After issuing this example command, the user username will be the owner of the directory somedir, as well as every file in that directory.
This e-mail address is being protected from spambots. You need JavaScript enabled to view it.