How to fix permissions in your server

A lot of times we want to fix permissions and ownership of many files in our server. This process can be time consuming if we do it via SSH or sFTP. There is a script that makes this very easy fast.

The script is intended for FastCGI or SuPHP

The script is at its developers GitHub and you can use it by simply going to SSH and using these commands:

wget https://raw.githubusercontent.com/PeachFlame/cPanel-fixperms/master/fixperms.sh

For single user just replace the USER-NAME with the user you want to fix the permissions:

sh ./fixperms.sh -a USER-NAME

If you want to fix the permissions for all the users you can use this command:

sh ./fixperms.sh -allf

 

That’s it. The permissions should be fine now.

 

Master of SEO, server management specialist, guru of web development. A living legend.

Leave a Reply

Next ArticleHow to use nano editor - Beginners' guide