Monday, August 19, 2013

fix capenl account permissions /scripts/chownpublichtmls


to fix accounts permissions do this commnad:\

/scripts/chownpublichtmls

OR create manual script

Generate the script:

cd /var/cpanel/users; ls -1 | awk {'print "chown "$1":nobody /home/"$1"/public_html"'} > ~/fixpubhtmlownerships.sh

Run the generated script:
sh ~/fixpubhtmlownerships.sh