Parse UNIX File Permissions

Input
Output
Example UNIX File Permissions

Octal Format Examples:

755 - rwxr-xr-x (Directory with execute for all) 644 - rw-r--r-- (Regular file, read-write for owner) 4755 - setuid+rwxr-xr-x (Setuid bit set)

Textual Format Examples:

drwxr-xr-x (Directory) -rw-r--r-- (Regular file) -rwsr-xr-x (Setuid executable)
đź’ˇ UNIX Permission Structure:
  • File type: d=directory, l=symlink, p=pipe, s=socket, c=char device, b=block device
  • User permissions: r=read (4), w=write (2), x=execute (1)
  • Group permissions: Same as user
  • Other permissions: Same as user
  • Special bits: setuid, setgid, sticky bit
Properties
Analyse UNIX file permissions to view details

Parses UNIX file permissions in octal (e.g., 755) or textual (e.g., drwxr-xr-x) format and explains which permissions are granted to which user groups. It also displays special bits like setuid, setgid, and sticky bit.

Analyse Permissions Restart

Parse UNIX File Permissions: The Online Unix File Permissions Parser & Chmod Calculator

Why Unix File Permissions Matter?

If you manage a Linux server, develop software, or host a website, you will inevitably encounter "Permission denied" errors. Unix and Linux operating systems use a strict permission model to secure files and directories. Every file has three classes of users: the Owner (User), the Group, and Others (Everyone else). For each class, you can assign three distinct permissions: Read (r), Write (w), and Execute (x).

Understanding how to read or assign these permissions—either through 3-digit octal numbers (like 755) or symbolic strings (like -rwxr-xr-x)—is a fundamental skill for any sysadmin or developer. Misconfiguring permissions (such as recklessly applying chmod 777) can leave your entire server vulnerable to devastating security breaches.

Our Unix File Permissions Parser and Calculator takes the guesswork out of the chmod command. It instantly translates confusing numeric values into visual, human-readable matrices, and vice versa.

Engineered for Speed: 100% Client-Side Calculation

We know developers hate waiting. This tool is built entirely on client-side JavaScript.

  • Zero Server Requests: The conversion between octal numbers, symbolic strings, and the visual permission matrix happens instantly in your browser.

  • Privacy by Default: We do not track or log what permission structures you are testing for your infrastructure.

How to Parse and Calculate Chmod Permissions?

Our bidirectional tool makes managing Linux file security effortless:

  1. Parse from Numbers (Octal): Type a 3-digit or 4-digit number (e.g., 644 or 0755) into the numeric input box. The tool will instantly generate the symbolic string (-rw-r--r--) and check the corresponding visual boxes.

  2. Parse from Symbols: Paste a directory listing string (like drwxr-xr-x) into the symbolic input field, and we will instantly decode it into its exact octal numeric value.

  3. Visual Calculator: If you aren't sure what number to type, simply click the checkboxes in the visual matrix (Read/Write/Execute for User/Group/Other). The tool will automatically generate the correct chmod command value for you to copy and paste into your terminal.

Frequently Asked Questions (FAQ)

  • Q: How is the octal permission number actually calculated?

    A: Unix permissions use a simple mathematical system where each action has a specific value: Read = 4, Write = 2, and Execute = 1. To get the number for a user class, you add the values together.


    • For Read + Write (4 + 2) = 6

    • For Read + Write + Execute (4 + 2 + 1) = 7

    • For Read only (4) = 4


    Therefore, 644 means the Owner can Read & Write (6), the Group can Read (4), and Others can Read (4).

  • Q: What does chmod 777 mean, and why is it dangerous?

    A: 777 means Read (4) + Write (2) + Execute (1) for all three categories: User, Group, and Others. This grants absolute, unrestricted access to the file or directory to anyone on the system or the internet. It is a massive security risk and should never be used on a production web server.

  • Q: What are the standard permissions for web server files and directories?

    A: As a best practice for web servers (like Nginx or Apache) and CMS platforms (like WordPress):


    • Directories/Folders: Should be set to 755 (drwxr-xr-x), allowing the owner to write, and everyone else to read and execute (enter the directory).

    • Files: Should be set to 644 (-rw-r--r--), allowing the owner to read and write, and everyone else to only read the file.


  • Q: Does this parser support special permissions like SUID, SGID, and Sticky Bit?

    A: Yes. If you input a 4-digit octal number (e.g., 4755 or 1777), the first digit represents the special permission flags. A 4 enables SUID, a 2 enables SGID, and a 1 enables the Sticky Bit (commonly used on the /tmp directory to prevent users from deleting each other's files).

Featured Tools

Featured tools that you might find useful.

Popular Tools

List of popular tools that users love and frequently use.

New Tools

The latest tools added to our collection, designed for you.

Topics

The tools grouped by topics to quickly find what you need.
SRT To TXT Converter can transform subtitle files in .srt format into plain text (.txt) files. Simply paste the SRT subtitle content into the provided text box or select an SRT file, and it will automatically extract the textual content from the subtitles. Afterwards, you can copy the text or download it as a .txt file for further use.

SRT To TXT Converter

SRT To TXT Converter can transform subtitle files in .srt format into plain text (.txt) files. Simply paste the SRT subtitle content into the provided text box or select an SRT file, and it will automatically extract the textual content from the subtitles. Afterwards, you can copy the text or download it as a .txt file for further use.
SRT To ASS Converter enables seamless conversion between .srt and .ass subtitle file formats. Simply select either an .srt or .ass formatted file, and the converter will automatically transform it into the another format.

SRT To ASS Converter

SRT To ASS Converter enables seamless conversion between .srt and .ass subtitle file formats. Simply select either an .srt or .ass formatted file, and the converter will automatically transform it into the another format.
SRT Editor is an online subtitle editor for SubRip Subtitle (SRT) file, it  allows you to batch-adjust the playback speed and timing offset of subtitles, and also provides the ability to individually adjust the order, timecodes, and text of each subtitle segment.

SRT Editor

SRT Editor is an online subtitle editor for SubRip Subtitle (SRT) file, it allows you to batch-adjust the playback speed and timing offset of subtitles, and also provides the ability to individually adjust the order, timecodes, and text of each subtitle segment.
SRT To VTT Converter enables seamless conversion between SubRip Subtitle(.srt) and Web Video Text Tracks (WebVTT)(.vtt) subtitle file formats. Simply select either an .srt or .vtt formatted file, and the converter will automatically transform it into the another format.

SRT To VTT Converter

SRT To VTT Converter enables seamless conversion between SubRip Subtitle(.srt) and Web Video Text Tracks (WebVTT)(.vtt) subtitle file formats. Simply select either an .srt or .vtt formatted file, and the converter will automatically transform it into the another format.