Monu Tools

chmod hesaplayıcı

Unix dosya izinlerini onay kutuları, sekizli (755 gibi) ve sembolik gösterim (rwxr-xr-x gibi) arasında dönüştürün.

chmod hesaplayıcı nasıl kullanılır

  1. 01

    Sahip, grup ve diğer için okuma, yazma ve çalıştırma kutularını işaretleyin.

  2. 02

    Veya kutuları otomatik ayarlamak için 755 gibi sekizli bir değer yazın.

  3. 03

    Çalıştırmaya hazır chmod komutunu kopyalayın.

What Unix permissions are

Unix file permissions control who can read, write and execute a file or directory, split across three groups: the owner, the group, and everyone else. This calculator converts between interactive checkboxes, the numeric octal form like 755, and the symbolic form like rwxr-xr-x, keeping all three in sync.

How the numbers work

Each group gets three bits, read (4), write (2) and execute (1), and you add them up to get one digit. So 7 is read plus write plus execute (rwx), 5 is read plus execute (r-x), and 6 is read plus write (rw-). Three digits, one per group, give you the familiar permission number.

Common values worth knowing

The common values are worth memorizing. 755 suits directories and executables: the owner has full access while group and others can read and execute but not write. 644 suits normal web files: the owner can read and write, everyone else can only read.

For sensitive files, 600 keeps things tight: only the owner can read or write, and nobody else has any access, which is what SSH private keys and similar secrets need.

Special bits and the fourth digit

There is also an optional fourth leading digit for special bits, setuid, setgid and the sticky bit, which change how programs run or how a shared directory behaves. When one is set, the execute position shows as s or t instead of x.

How to use the output

The calculator gives you the ready-to-run chmod command to copy, and runs entirely in your browser. It is a reference and converter, so it does not change any files itself.

Sıkça sorulan sorular

755 ve 644 ne anlama gelir?

755 sahibe tam erişim ve herkese okuma ve çalıştırma verir, dizinler ve betikler için kullanılır. 644 sahibe okuma ve yazma ve herkese yalnızca okuma verir, normal dosyalar için kullanılır.

777 ne anlama gelir ve güvenli mi?

777 herkese okuma, yazma ve çalıştırma verir. Bir sunucuda neredeyse her zaman güvensizdir çünkü herhangi bir kullanıcı dosyayı değiştirebilir. Bunun yerine 755 veya 644'ü tercih edin.

Bir dosyayı nasıl çalıştırılabilir yaparım?

Çalıştırma bitini ekleyin. 644'ten 755'e (veya chmod +x) geçersiniz, bu da sahip, grup ve diğerleri için çalıştırmayı açar.

Sembolik ve sekizli gösterim arasındaki fark nedir?

Sekizli (755 gibi) izinleri sayı olarak kodlar, sembolik (rwxr-xr-x veya u+x) ise onları harf olarak tanımlar. Bu araç her ikisini de gösterir ve senkronize tutar.

setuid, setgid ve sticky bit nedir?

Bunlar baştaki dördüncü bir basamaktır. Setuid ve setgid bir programı sahibi veya grubu olarak çalıştırır ve bir dizindeki sticky bit kullanıcıların birbirlerinin dosyalarını silmesini engeller (/tmp'de olduğu gibi).

Çalıştırma biti neden s veya t olarak gösteriliyor?

setuid, setgid veya sticky bit ayarlandığında, özel bitin etkin olduğunu belirtmek için çalıştırma konumu x yerine s veya t olarak gösterilir.

Kaynaklar

Bu aracı göm

Bu aracı kendi web sitenize ekleyin. Aşağıdaki kod parçacığını kopyalayın; otomatik olarak güncel kalır.

<iframe src="https://monu.tools/embed/tr/chmod-calculator" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

İlgili araçlar