मुख्य सामग्री पर जाएँ

Chmod कैलकुलेटर

Unix फ़ाइल अनुमतियों को ऑक्टल (755), सिंबॉलिक (rwxr-xr-x) और चेकबॉक्स के बीच बदलें, setuid, setgid और sticky bit, chmod कमांड, u+x जैसे एक्सप्रेशन और umask के साथ।

100% क्लाइंट-साइड · कोई भी डेटा आपके ब्राउज़र को नहीं छोड़ता

Permissions

ClassReadWriteExecuteValue
Owner7
Group5
Others5

Run as the file's owner

Run as group / inherit group

Only owners delete (/tmp)

Notation

3 or 4 digits, e.g. 644 or 2775

Or paste an ls -l column like drwxr-sr-x

Octal (4-digit)
0755
ls -l
-rwxr-xr-x

What it means

  • Owner: can read, write and execute.
  • Group: can read and execute.
  • Others: can read and execute.

Common use: Directories and scripts.

Command

Applies to every file and folder inside. For mixed trees, prefer chmod -R a+rX or find … -type f/-type d.

Run this
chmod 755 deploy.sh

Try a chmod expression

Starts from the current mode (755). Clauses like u+x, go-w, a=rX, g=u or +t.

755 → 755 (rwxr-xr-x)

umask

Which permissions new files and folders get.

New files
644 (rw-r--r--)
New directories
755 (rwxr-xr-x)

इस टूल के बारे में

मालिक (owner), ग्रुप और अन्य के लिए पढ़ने (read), लिखने (write) और चलाने (execute) पर टिक करें, या 644 या 2775 जैसा ऑक्टल मोड लिखें, या ls -l से अनुमति वाला कॉलम (drwxr-sr-x) पेस्ट करें। तीनों आपस में सिंक रहते हैं और टूल सरल शब्दों में समझाता है कि फ़ाइलों या डायरेक्टरी के लिए कौन क्या कर सकता है। यह setuid, setgid और sticky bit (s, S, t, T) को संभालता है, chmod कमांड ऑक्टल या सिंबॉलिक रूप में लिखता है, दिखाता है कि u+x,go-w या a=rX जैसा chmod एक्सप्रेशन मौजूदा मोड पर क्या असर डालता है, और हिसाब लगाता है कि कोई umask नई फ़ाइलों और फ़ोल्डरों को कौन-सी डिफ़ॉल्ट अनुमतियाँ देता है। चेतावनियाँ 777 या सबके लिए लिखने योग्य (world-writable) फ़ाइलों जैसे जोखिम भरे मोड की ओर ध्यान दिलाती हैं।

chmod अनुमतियाँ कैसे कैलकुलेट करें

अनुमतियों को ऑक्टल मोड और chmod कमांड में बदलें।

  1. 1

    अनुमतियाँ सेट करें

    मालिक, ग्रुप और अन्य के लिए read, write और execute पर टिक करें, या 755 या rwxr-xr-x लिखें।

  2. 2

    ज़रूरत हो तो स्पेशल बिट जोड़ें

    setuid, setgid या sticky bit चालू करें।

  3. 3

    कमांड कॉपी करें

    फ़ाइल का नाम डालें और chmod कमांड कॉपी करें।