Directory ownership is something that often needs to be changed when an application requires read or write permissions for a directory. This can be a bit tricky to get right at times, but generally you can achieve everything you want using a chown command. Chown is used to change the ownership of a directory from…
The following command will allow you to change the ownership of a directory along with all files and sub-directories without changing permissions. Changing the ownership can be done very easily. Often it can be a requirement to change the owner of a directory if you want to allow apache to read and write to a…