To change directory permissions in Linux, use the following:
- chmod +rwx filename to add permissions.
- chmod -rwx directoryname to remove permissions.
- chmod +x filename to allow executable permissions.
- chmod -wx filename to take out write and executable permissions.
What is the meaning of chmod 777?
Setting 777 permissions to a file or directory means that it will be readable, writable and executable by all users and may pose a huge security risk. ... File ownership can be changed using the chown command and permissions with the chmod command.
How do I give permission to 777 in Linux?
If you are going for a console command it would be: chmod -R 777 /www/store . The -R (or --recursive ) options make it recursive. chmod -R 777 .