: CHMOD

Welcome :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

chmod


The "chmod" command is used to set the permissions of a file. You can access the command:


Why chmod?


Permissions protect your files from being changed or accessed by unauthorized users.

For most people, your "executable" files should all be protected. The below script, from simsim on this forum thread can set the files correctly.

cd /path/to/your/script folder
chmod -R 644 *.php
chmod -R 644 *.html
chmod -R 644 *.asp

If you want to locate which files are "unprotected", i.e. still at a 777 permissions, try ls -lR | grep rwxrwxrwx > listing.txt which will make a list of all unprotected files.

Further Information about chmod


There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.0532 seconds