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

Interactive Permission Matrix (rwx)

RoleRead (r - 4)Write (w - 2)Execute (x - 1)Octal Total
Owner (User)6
Group4
Others (Public)0

Copyable chmod 640 Commands

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