~/devtools / chmod / 664
tool::chmod-detail

chmod 664

rw-rw-r--

Group Editable File

ad · 728×90
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
664
Symbolic
rw-rw-r--

Explanation

chmod 664 gives the owner and group members read and write permissions, while others get read-only. No execute bit makes this suitable for data files rather than scripts. Commonly used for team-shared source files, shared logs, and configuration files that group members need to edit.

Common Use Cases
  • Source code files edited collaboratively by a team
  • Log files shared across multiple services
  • Data files modified by group members (CSV, JSON)
  • Uploaded media files in web applications
  • Shared configuration files editable by a group
Security Considerations

664 is a safe permission for collaborative file access. The missing execute bit prevents uploaded files from being executed directly. In web upload directories, ensure files are group-writable but never grant execute (x). Use 640 or 600 for files containing sensitive data.

Command Examples

$ chmod 664 shared-config.json
$ chmod 664 /var/log/app/access.log
$ find /srv/project -type f -exec chmod 664 {} \;
$ chmod 664 uploads/*.csv

Related Permissions

755rwxr-xr-x644rw-r--r--777rwxrwxrwx700rwx------
ad · 300×250
Back to chmod Calculator
// related tools
Cron Expression Generator
Build and parse cron expressions visually. Generate human-readable descriptions and preview next execution times.
jwt
JWT Decoder
Decode and inspect JWT tokens. View header, payload, and signature details.
rx
Regex Tester
Test regular expressions with live matching, group highlighting, and explanations.
Color Converter
Convert colors between HEX, RGB, HSL, and more. Pick colors visually.