Menu

Setting file permissions

Leslie Kaye

Recommended Permissions:

755
This allows everyone to read and execute (or enter, for directories). Appropriate for CGI scripts and directories where you don't mind people knowing what's in there.
711
Only you (and your scripts) can read the contents, but everyone can execute/enter. Appropriate for directories which the web server needs to access but you don't want everybody seeing what's in there.
700
Only you/your scripts can do anything. Appropriate for directories which you don't want to be web-accessible but do use, eg. to contain data files for your scripts.
644
Allows everyone to read. Appropriate for non-script files which you intend people to access on the web, eg. HTML, CSS.
600
Only you/your scripts can read. Appropriate for script include or data files which you don't want people to access directly on the web.


Related

Wiki: Navigating your web site

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.