CareerByteCode

chmod and umask Calculator with setuid, setgid and Sticky Bit

For Linux admins, DevOps engineers and students. Convert 4-digit modes, understand special bits and check what a umask gives new files and folders.

FreeRuns in your browserNothing uploadedNo sign-up neededAll 15 tools in the Security Toolbox
Keep this resultSign in to email it to yourself or save it to your profile. The tool itself never needs an account.

Exams

Prove it with a verified certificate

Take an online exam and add a verified certificate to your public profile that anyone can check.

See exams
How to use

How to use the chmod and umask Calculator

  1. Type a 3 or 4 digit octal mode, or tick the boxes.
  2. Choose whether it is a file or a directory.
  3. Enter a umask to see the default permissions of new files and folders.
  4. Read the warnings and copy the chmod command.
Worked example

An example, step by step (example only)

You enter

Mode 4755 on a file with umask 0022

The tool shows

-rwsr-xr-x, chmod 4755 or chmod u=rwx,g=rx,o=rx,u+s; umask 0022 gives new files 644 and new folders 755; a warning that setuid runs the program with its owner's rights

FAQ

Questions about the chmod and umask Calculator

What does chmod 4755 mean?

The 4 sets setuid, then 755: the owner can read, write and run, everyone else can read and run. The program runs with its owner's rights.

What does umask 022 do?

It removes write rights for the group and others from new items, so files start as 644 and folders as 755.

Why is chmod 777 dangerous?

Everyone on the machine can change or replace the file, so one compromised account can take over what runs it. Use 755, 644 or 600 instead.

Is the chmod and umask Calculator free and private?

Yes. It is free, needs no sign-up and runs entirely in your browser, so what you type is not uploaded. You only sign in if you want to email a result to yourself or save it to your CareerByteCode profile.

Copied