Blog

Reading chmod 750 and 640 | Convert the ls -l permissions field to octal

Convert drwxr-x--- from Linux ls -l to 750 with the chmod permission calculator. Follow screenshots to distinguish permissions on a shared directory from those on its files, and use the checkboxes to build 640 for a regular file.

English chmod calculator showing the directory permissions drwxr-x---, the octal value 750 and the permission checkboxes.

You run ls -ld on a shared team directory and see drwxr-x--- at the start of the line. Can members of the group open the files inside? Should a report in that directory use the same permissions? Use the chmod permission calculator to check the directory and the report separately.

Convert the directory permissions to 750

  1. Open the calculator and enter drwxr-x--- in Symbolic notation. When pasting from an actual listing, copy the ten-character permissions field at the beginning of the line.
  2. Check that Octal permissions and the result both show 750. The initial d denotes a directory. The calculation uses the next nine characters.
  3. Read the checkboxes from left to right. Owner has rwx, Group has r-x, and Others has ---.
English interface with drwxr-x--- in the symbolic field and 750 in the result.
All three owner boxes are selected, along with read and execute/search for the group.

For a directory, r allows listing names and x allows looking up an item by name. The group has both here. Whether someone can read the report also depends on permissions on the directories along the path and on the report itself.

Build the report permissions 640 with checkboxes

The owner needs to read and write the report, while members of the report’s group only need to read it. Start with 750 displayed from the previous steps.

  1. Clear Execute/search (x) under Owner and Group.
  2. Check that read and write remain selected for the owner, only read for the group, and nothing for others.
  3. Check the result 640(rw-r-----). The values are 4 for r, 2 for w, and 1 for x, so the three digits are 4+2, 4, and 0 from left to right.
English interface showing 640 and rw-r----- with read and write for the owner and only read for the group.
Clearing the boxes updates both the octal and symbolic values immediately.

Checking actual access

The calculator handles the nine ordinary permission bits in your browser. If the field has a trailing + or . indicating additional access controls such as an ACL, omit that marker when converting. To determine who can actually access a file, also check its owner, group, and additional access controls. Inputs with setuid, setgid, or the sticky bit display a message about the supported formats.