Security: Standard
chmod 755 β rwxr-xr-x
Owner has full control (rwx). Group and Everyone else can read and execute (r-x), but cannot modify.
Live Interactive Permission Matrix
Linux chmod Calculator & Generator
Octal Value
755
Symbolic
rwxr-xr-x
Quick Presets:
Owner (User)
The file creator
Group
Team or service account
Public (Others)
All other system users
Security Assessment
Status: Elevated
Target:
chmod 755 deploy.shchmod -R 755 /var/www/deploy.shInteractive Permission Matrix (rwx)
| Role | Read (r - 4) | Write (w - 2) | Execute (x - 1) | Octal Total |
|---|---|---|---|---|
| Owner (User) | 7 | |||
| Group | 5 | |||
| Others (Public) | 5 |
Copyable chmod 755 Commands
Apply to Single File
chmod 755 target_fileApply Recursively to Directory
chmod -R 755 /path/to/folderOnly Apply to Directories (find)
find /path/to/folder -type d -exec chmod 755 {} +Only Apply to Files (find)
find /path/to/folder -type f -exec chmod 755 {} +Recommended Real-World Use Cases
- β’Web server directories (`/var/www/html`)
- β’Shell scripts (`deploy.sh`, `backup.sh`)
- β’Compiled binaries (`/usr/local/bin/*`)
- β’Git hook scripts (`.git/hooks/pre-commit`)
Security Consideration
chmod 755 is the universal standard permission for web server public directories (`public_html`, `/var/www/html`) and executable shell scripts. It allows web servers (like NGINX and Apache) to traverse directories and serve files while preventing external visitors or group members from tampering with the files.
Frequently Asked Questions
chmod 755 Questions & Answers
Common questions regarding Linux permissions, security risks, and recursive chmod commands.
Owner has full control (rwx). Group and Everyone else can read and execute (r-x), but cannot modify. In symbolic notation, this is represented as "rwxr-xr-x".