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
7
Group
Team or service account
5
Public (Others)
All other system users
5
Security Assessment
Status: Elevated
View Full chmod 755 Guide β†’
Target:
chmod 755 deploy.sh
chmod -R 755 /var/www/deploy.sh

Interactive Permission Matrix (rwx)

RoleRead (r - 4)Write (w - 2)Execute (x - 1)Octal Total
Owner (User)7
Group5
Others (Public)5

Copyable chmod 755 Commands

Apply to Single File
chmod 755 target_file
Apply Recursively to Directory
chmod -R 755 /path/to/folder
Only 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".