chmod 755 explained
What chmod 755 means: the owner can read, write and run; everyone else can read and run. With the rwxr-xr-x form.
In your browser
| Read | Write | Execute | |
|---|---|---|---|
| Owner | |||
| Group | |||
| Everyone else |
Symbolic
Command
Also with the chmod calculator
About this tool
chmod 755 (rwxr-xr-x) lets the owner read, write and execute, and lets the group and everyone else read and execute. It’s the usual setting for directories and scripts on web servers.
How to use it
- 1 Review the permissions granted: Owner (rwx), Group (r-x), Others (r-x).
- 2 Copy the command chmod 755 filename or apply it recursively with -R.
Questions
When should I use chmod 755?
Use 755 for directories on web servers so the web server process and visitors can navigate into folders, and for executable scripts (like bash, Python, or CGI scripts) that need to run.
What is the symbolic representation of 755?
In symbolic notation, chmod 755 is written as -rwxr-xr-x (or drwxr-xr-x for directories).
What do the numbers in chmod 755 mean?
Each digit represents permissions for Owner (7), Group (5), and Others (5). 7 = Read (4) + Write (2) + Execute (1); 5 = Read (4) + Execute (1). This allows the owner full control while others can only read and run the file.
What permissions should web server files have?
Best security practice on Linux web servers (Nginx/Apache) is chmod 644 for regular files (HTML, PHP, images) and chmod 755 for directories, allowing the server to enter directories and serve files safely.
Why is chmod 777 dangerous?
chmod 777 grants every user on the system permission to read, modify, overwrite, and execute the file. On shared hosting or public servers, this exposes your files to tampering, malicious code injection, and security breaches.
Is my data uploaded?
No. This tool runs in your browser, so your text and files never reach our server.
Is this tool free?
Yes. It’s free to use with no sign-up and no limits for normal use.
More in Code & markup
- Regex tester Test a regular expression against your text, with matches and capture groups highlighted live.
- Cron expression parser Explain a cron schedule in plain English and list the next times it will run.
- HTTP status codes Look up what any HTTP status code means and when to use it.
- HTML minifier Remove comments and collapse whitespace in HTML.
- CSS minifier Remove comments and unnecessary whitespace from CSS.
- JavaScript minifier Minify JavaScript onto one line with Terser: strips comments and spaces, shortens local names and simplifies code.