chmod permissions table

Every common octal permission with its ls -l string. The three digits are owner, group and others; each is read (4) + write (2) + execute (1).

Models -lTypical use
000----------No permissions; only root can access it.
400-r--------Read-only for the owner, e.g. AWS .pem key files.
401-r-------x
404-r-----r--
405-r-----r-x
406-r-----rw-
407-r-----rwx
410-r----x---
411-r----x--x
414-r----xr--
415-r----xr-x
416-r----xrw-
417-r----xrwx
440-r--r-----Read-only for owner and group, e.g. /etc/sudoers.
441-r--r----x
444-r--r--r--Read-only for everyone.
445-r--r--r-x
446-r--r--rw-
447-r--r--rwx
450-r--r-x---
451-r--r-x--x
454-r--r-xr--
455-r--r-xr-x
456-r--r-xrw-
457-r--r-xrwx
460-r--rw----
461-r--rw---x
464-r--rw-r--
465-r--rw-r-x
466-r--rw-rw-
467-r--rw-rwx
470-r--rwx---
471-r--rwx--x
474-r--rwxr--
475-r--rwxr-x
476-r--rwxrw-
477-r--rwxrwx
500-r-x------Owner can read and run, no one can write.
501-r-x-----x
504-r-x---r--
505-r-x---r-x
506-r-x---rw-
507-r-x---rwx
510-r-x--x---
511-r-x--x--x
514-r-x--xr--
515-r-x--xr-x
516-r-x--xrw-
517-r-x--xrwx
540-r-xr-----
541-r-xr----x
544-r-xr--r--
545-r-xr--r-x
546-r-xr--rw-
547-r-xr--rwx
550-r-xr-x---
551-r-xr-x--x
554-r-xr-xr--
555-r-xr-xr-xRead and execute for everyone, no writes (read-only binaries).
556-r-xr-xrw-
557-r-xr-xrwx
560-r-xrw----
561-r-xrw---x
564-r-xrw-r--
565-r-xrw-r-x
566-r-xrw-rw-
567-r-xrw-rwx
570-r-xrwx---
571-r-xrwx--x
574-r-xrwxr--
575-r-xrwxr-x
576-r-xrwxrw-
577-r-xrwxrwx
600-rw-------Private files: SSH private keys, .env files, credentials.
601-rw------x
604-rw----r--
605-rw----r-x
606-rw----rw-
607-rw----rwx
610-rw---x---
611-rw---x--x
614-rw---xr--
615-rw---xr-x
616-rw---xrw-
617-rw---xrwx
640-rw-r-----Config or log files readable by a service group, e.g. /etc/shadow uses 640 or 000.
641-rw-r----x
644-rw-r--r--Standard for regular files such as HTML, images and config files.
645-rw-r--r-x
646-rw-r--rw-
647-rw-r--rwx
650-rw-r-x---
651-rw-r-x--x
654-rw-r-xr--
655-rw-r-xr-x
656-rw-r-xrw-
657-rw-r-xrwx
660-rw-rw----Read/write for owner and group, e.g. shared sockets or databases.
661-rw-rw---x
664-rw-rw-r--Shared files editable by the group.
665-rw-rw-r-x
666-rw-rw-rw-Read/write for everyone, typical for device files like /dev/null.
667-rw-rw-rwx
670-rw-rwx---
671-rw-rwx--x
674-rw-rwxr--
675-rw-rwxr-x
676-rw-rwxrw-
677-rw-rwxrwx
700-rwx------Private directories such as ~/.ssh and personal scripts.
701-rwx-----xOwner full; others may traverse but not list.
704-rwx---r--
705-rwx---r-x
706-rwx---rw-
707-rwx---rwx
710-rwx--x---
711-rwx--x--xHome directories others may traverse but not list.
714-rwx--xr--
715-rwx--xr-x
716-rwx--xrw-
717-rwx--xrwx
740-rwxr-----
741-rwxr----x
744-rwxr--r--
745-rwxr--r-x
746-rwxr--rw-
747-rwxr--rwx
750-rwxr-x---Directories for a service and its group, hidden from others.
751-rwxr-x--xOwner full, group read/execute, others execute-only (traverse).
754-rwxr-xr--
755-rwxr-xr-xStandard for directories, web roots and executable scripts.
756-rwxr-xrw-
757-rwxr-xrwx
760-rwxrw----
761-rwxrw---x
764-rwxrw-r--
765-rwxrw-r-x
766-rwxrw-rw-
767-rwxrw-rwx
770-rwxrwx---Full access for owner and group, nothing for others.
771-rwxrwx--x
774-rwxrwxr--
775-rwxrwxr-xShared project directories where the group collaborates.
776-rwxrwxrw-
777-rwxrwxrwxEveryone can do everything. Almost never the right answer.

Calculate any mode with the chmod calculator.