Security: Elevated
chmod 660 β rw-rw----
Owner and Group can read and write (rw-). Others have ZERO permissions (---).
Live Interactive Permission Matrix
Linux chmod Calculator & Generator
Octal Value
660
Symbolic
rw-rw----
Quick Presets:
Owner (User)
The file creator
Group
Team or service account
Public (Others)
All other system users
Security Assessment
Status: Elevated
Target:
chmod 660 deploy.shchmod -R 660 /var/www/deploy.shInteractive Permission Matrix (rwx)
| Role | Read (r - 4) | Write (w - 2) | Execute (x - 1) | Octal Total |
|---|---|---|---|---|
| Owner (User) | 6 | |||
| Group | 6 | |||
| Others (Public) | 0 |
Copyable chmod 660 Commands
Apply to Single File
chmod 660 target_fileApply Recursively to Directory
chmod -R 660 /path/to/folderOnly Apply to Directories (find)
find /path/to/folder -type d -exec chmod 660 {} +Only Apply to Files (find)
find /path/to/folder -type f -exec chmod 660 {} +Recommended Real-World Use Cases
- β’Database unix domain sockets (`/var/run/mysqld/mysqld.sock`)
- β’Shared application log files containing sensitive telemetry
- β’Application configuration files shared across local team members
Security Consideration
chmod 660 is used for confidential files that must be shared between a specific service user and a system group (e.g. web server and database daemon).
Frequently Asked Questions
chmod 660 Questions & Answers
Common questions regarding Linux permissions, security risks, and recursive chmod commands.
Owner and Group can read and write (rw-). Others have ZERO permissions (---). In symbolic notation, this is represented as "rw-rw----".