Dev UtilitiesLesson 131Free preview
Chmod Calculator
This lesson is part of Web Developer Tools · All levels
Summary
Chmod calculator helps calculate the permissions of a Unix file from a combination of read, write, and execute to an octal number like 755. Permissions are divided into owner, group, and others, each with values of 4, 2, and 1. The resulting numbers can be used directly on the chmod command. Make sure the file is not authorized to be written or executed by anyone without a clear reason.
Key points
- Read=4, write=2, execute=1 and sum it up as per permission
- Three digits represent the owner, group, and others.
- 755 means rwxr-xr-x
- 644 means rw-r--r-- and common to ordinary files
- The directory needs an executive to get in.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.