Change Owner permission of all folders and files recursively via SSH
Sometime it may happen you uploaded file as root via ssh or ftp. In this case other user or owner may not be able to edit those files. Below are the sample code that will change the ownership of the file to ftp so it may editable.
chown -R ftp *