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:
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 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 -all
fThat’s it. The permissions should be fine now.
Michalis Michailidis
Master of SEO, server management specialist, guru of web development. A living legend.
You might also like
How to easily find infected/hacked files from the command line
Roundcube emails not showing after migration
Outgoing email problem -> 550 Access denied – Invalid HELO name
A better backup system for WHM/cPanel – Jet Backup Manager
Next ArticleHow to use nano editor - Beginners' guide