A Script for Fixing File Permissions

https://knowledgebase.servint.net/questions/674/A+Script+for+Fixing+File+Permissions

http://boomshadow.net/tech/fixes/fixperms-script/

Steps to run fixperms on your VPS

1 wget fixperms and run for a single user

To use the fixperms script, simply log into your server as root, wget the file from our server, then run it. Type in the cPanel username and it will run only for that particular account.

It does not matter which directory you are in when you run fixperms. You can be in the user’s home directory, the server root, etc. The script will not affect anything outside of the particular user’s folder.

wget http://img.servint.net/fixperms.sh.gz
gunzip fixperms.sh.gz
sh fixperms.sh -a USER-NAME

 

2 Running fixperms for all of the users

If you would like to fix the permissions for every user on your cPanel server, simply use the ‘–all’ option:

sh fixperms.sh –all

Leave a Reply

Your email address will not be published.