Change directories and files permissions from ssh

Here are the commands to change directories permission recursively to 755 and files permissions to 644 recursively:

To change directories/folders permissions to 755:

$ find /opt/lampp/htdocs -type d -exec chmod 755 {} \;

To change files permissions to 644:

$ find /opt/lampp/htdocs -type f -exec chmod 644 {} \;

Where, /opt/lampp/htdocs is the location of directory. You can use “.” without quotes to scan and change under current directory/folder.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>