Menu
PDF Tools
Image Tools
Converters & Utilities
Seller & Print Tools
Accounting & Business
Calculators
Text & Writing Tools
Developer & Web Tools
Creator & Social Tools
Browser Utilities & Games
Document & Design Makers
Text & Developer Tools
Exam & Form Tools

Chmod Calculator

This tool works out Linux file permissions. Tick read, write and execute for the owner, group and others, or type a number such as 755, and get the chmod command.

How to use Chmod Calculator online

  1. Pick how to start. Tick boxes, type octal or type letters.
  2. Set the permissions. For owner, group and others.
  3. Name the file. It is used in the command.
  4. Copy the command. Copy the chmod line.

Why use this free Chmod Calculator

  • Tick boxes or type a number
  • Symbolic form shown
  • Special bits
  • Plain explanation for each user
  • Command with letters
  • Share by link

What chmod does

On Linux and macOS, every file has permissions for three kinds of user: the owner, the group and everyone else. Each can be given the right to read, write or execute. The chmod command sets them. A number or a string of letters says which rights each kind of user has.

The numbers

Read is worth 4, write is worth 2 and execute is worth 1, and a digit adds up the rights of one kind of user. So 7 is all three, 6 is read and write, 5 is read and execute, and 4 is read only. Three digits give owner, group and others. The mode 755 is rwxr-xr-x and 644 is rw-r--r--.

A worked example

With the default boxes ticked, the mode is 755, written rwxr-xr-x. The command is "chmod 755 file.txt". The owner can read, write, execute, the group can read and execute, and others can read, execute. The long form is chmod u=rwx,g=rx,o=rx file.txt.

Special bits

A fourth digit in front adds setuid, setgid and the sticky bit. Setuid and setgid make a program run with the rights of its owner or group, and show as s. The sticky bit on a shared folder lets only the owner of a file delete it, and shows as t. Use them with care, because setuid programs are a security risk.

Safe choices

Web files are usually 644 for files and 755 for folders. Private keys should be 600. Avoid 777, which lets every user on the machine change the file. For a directory, execute means the right to enter it, so a folder without it cannot be opened even if it can be read.

Using the tool

As you type in the Chmod Calculator, the result appears at once. Use result as input to pass the answer to the next step.

Chmod Calculator: frequently asked questions

What does chmod 755 mean?
The owner can read, write and execute, and everyone else can read and execute.
What is 644?
The owner can read and write, and everyone else can only read.
Why is 777 a bad idea?
It lets every user change or run the file.
What does execute mean for a folder?
The right to enter the folder and reach files inside it.
What are setuid and the sticky bit?
Special bits that change who a program runs as, or who can delete files in a folder.
Where does my text go when I use the Chmod Calculator?
No copy is made on a server; the Chmod Calculator runs in your browser.
Can I chain the Chmod Calculator with another tool?
Press Use result as input and the Chmod Calculator answer becomes the new input.

Related searches for Chmod Calculator

  • Chmod Calculator online
  • free Chmod Calculator
  • Chmod Calculator online free
  • Chmod Calculator for mobile
  • Chmod Calculator without sign up
  • chmod formula
  • chmod calculator with table
  • Chmod Calculator – Text & Writing Tools

Chmod Calculator is a free online tool on MAITBOX, in the Text & Writing Tools group. It runs in your browser, so what you type is not sent to a server. It works on Android and iPhone, and on Windows, Mac and Linux, with no download and no account.

More tools in Text & Writing Tools →

Search tools