Security: Safe
chmod 640 β rw-r-----
Owner has (rw-), Group has (r--), and Others have (---).
Live Interactive Permission Matrix
Linux chmod Calculator & Generator
Octal Value
640
Symbolic
rw-r-----
Quick Presets:
Owner (User)
The file creator
Group
Team or service account
Public (Others)
All other system users
Security Assessment
Status: Safe
Target:
chmod 640 deploy.shchmod -R 640 /var/www/deploy.shInteractive Permission Matrix (rwx)
| Role | Read (r - 4) | Write (w - 2) | Execute (x - 1) | Octal Total |
|---|---|---|---|---|
| Owner (User) | 6 | |||
| Group | 4 | |||
| Others (Public) | 0 |
Copyable chmod 640 Commands
Apply to Single File
chmod 640 target_fileApply Recursively to Directory
chmod -R 640 /path/to/folderOnly Apply to Directories (find)
find /path/to/folder -type d -exec chmod 640 {} +Only Apply to Files (find)
find /path/to/folder -type f -exec chmod 640 {} +Recommended Real-World Use Cases
- β’Files requiring owner rw- and group r--
- β’Restricted scripts and utilities
- β’Custom deployment configurations
Security Consideration
chmod 640 (rw-r-----) configures specific Linux permission bits where the owner receives numeric value 6, the group receives 4, and public users receive 0. Total combined mask is 640.
Frequently Asked Questions
chmod 640 Questions & Answers
Common questions regarding Linux permissions, security risks, and recursive chmod commands.
Owner has (rw-), Group has (r--), and Others have (---). In symbolic notation, this is represented as "rw-r-----".