≡ Menu

How to CHMOD Files and Folder

Set chmod a Folder or a file

chmod 755 [folder_name]
chmod 755 [file_name]

Set chmod all folders and files

chmod -R /path/to/folder

If you really want to do is set the directories to 755 and either leave the files alone or set them to 644 for this you can use the find command e.g.

to change all the directories to 755:

    find /path/to/folder -type d -exec chmod 755 {} ;

to change all the files to 644:

    find /path/to/folder -type f -exec chmod 644 {} ;
{ 0 comments… add one }

Leave a Comment

CAPTCHA
*