Permissions in home directory fixing

find . -type d -exec chmod 755 {} \;

find . -type f -exec chmod 644 {} \;

These two commands recursively changes the permissions of the files to 644 [r-w-r-r] and for folders 755 [rwx-r-x-r-x] which are required for the correct working of domain in the public_html folder.

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s