CPanel - Change All Folder Or File To 755 and 644 From shell

When i check my cpanel, my folder has change into 400 and file 600, how can i change all folder subfolder and all file on subfolder, u can try here baby :


1. Create file bash,
#vi change.sh
2. Paste this bash script
#Muhammad Hafidz Aghifary
#24-04-2011 - test test test
# Change Folder 755 and file 644 instant
# Status Weekend On Office



echo "insert user -hafidz script-"

read input
a="$input"

find /home/$a/public_html -type d -exec chmod 755 {} \;
find /home/$a/public_html -type f -exec chmod 644 {} \;

4. Save file , and give
# chmod +x change.sh

5. run The Script
# ./change.sh

Wow My files Change it All, THat How ItS Works

1 comments:

Unknown said...

These are some great tools that i definitely use for SEO work. This is a great list to use in the future .
cpanel vps

Post a Comment