Search code examples
linuxpermissionsfile-permissionschmod

Chmod 777 to a folder and all contents


I have a web directory /www and a folder in that directory called store.

Within store are several files and folders. I want to give the folder store and all files and folders within the store folder all permissions.

How do I do this? I am guessing via .htaccess.


Solution

  • If you are going for a console command it would be:

    chmod -R 777 /www/store. The -R (or --recursive) options make it recursive.

    Or if you want to make all the files in the current directory have all permissions type:

    chmod -R 777 ./

    If you need more info about chmod command see: File permission