tool::chmod-detail
chmod 755
rwxr-xr-x
Standard Executable / Directory
Permission Structure
Owner (User)
✓Read (r)
✓Write (w)
✓Execute (x)
Group
✓Read (r)
✗Write (w)
✓Execute (x)
Others
✓Read (r)
✗Write (w)
✓Execute (x)
Octal
755Symbolic
rwxr-xr-xExplanation
chmod 755 grants the owner full read, write, and execute permissions, while group and others get read and execute only. This is the most common permission for web server directories and executable scripts. Anyone can enter the directory or run the file, but only the owner can modify it.
Common Use Cases
- ▸Apache/Nginx web server document root directories
- ▸Public shell scripts (.sh) and executable binaries
- ▸Node.js project root directories
- ▸System shared directories (/usr/local/bin, etc.)
- ▸Scripts referenced by GitHub Actions workflows
Security Considerations
Since 755 allows all users to execute, avoid it on files containing sensitive data. When applying 755 to a web root directory, ensure child files are set to 644. Write permission is limited to the owner, preventing unintended modification by others.
Command Examples
$ chmod 755 /var/www/html$ chmod 755 deploy.sh$ find /var/www -type d -exec chmod 755 {} \;$ chmod -R 755 /usr/local/bin/myappRelated Permissions
ad · 300×250
// related tools