Kategoriler: Teknik İpuçları

CHMOD 777 ne anlama geliyor?

Those who have used a Unix-based operating system are probably familiar with the term Chmod 777. However, you may not know exactly what it means and how to use it. There is no reason to worry, here we will take a closer look at this term to help you clarify things. Let’s start by saying that Chmod is the command and system call in Unix based OS, which is used to change the access permission to file and directories. If you attempt to edit a file or upload data into a directory, you may see an error stating that there is no permission for the file. Let’s take a closer look at Chmod 777 and its meaning in Unix.

Chmod 777 nedir?

It is important to note that in Unix based OS, there are two main aspects to note for files and their permissions. The first is the class of users that are able to access the file and the second is the kind of permissions available for each class of users. There are three different classes of users to note: Owners, Groups and Others. As the name suggests, Owners are the users who own the files and can edit them. Groups refers to group of users and like the owners, they have permissions to edit files. “Others” refer to general users who have limited access.

İzinler söz konusu olduğunda, akılda tutulması gereken üç tür vardır: Okuma, Yazma ve Yürütme. Okuma modu yalnızca dosyanın içeriğini okuma izni sağlar. Bir dosyayı düzenleyebilmek için Yazma iznine ihtiyacınız vardır. Dosyanın komut dosyasını çalıştırmak için yürütme izinlerine ihtiyacınız olacaktır. Bir dosyaya erişim, sınıflar ve izinler tarafından belirlenir. Okuma 4 bitlik veri ile aynıdır ve bu nedenle genellikle 4 olarak ifade edilir. Yazma komutu 2 bitlik veri olduğu için 2 olarak belirtilir, Çalıştır ise 1 bittir. Farklı Read, Write ve Execute kombinasyonları olduğu unutulmamalıdır.

Farklı kombinasyonlar:

0 – No permission
1 – Execute
2 – Write
3 – Write and execute
4 – Read
5 – Read and execute
6 – Read and Write
7 – Read, write and execute

The number 7 in Chmod involves read, write and execute permission, but to understand why there are three 7’s in Chmod, we need to keep in mind the classes of users. We mentioned before that we have: Owners, Groups and Others. The three 7’s in Chmod refer to these three classes of users. The first 7 refers to Owners, the second to Groups and the third to Others. In essence, chmod 777 indicates that owners, groups and others have permissions to read, write and execute files. Below, you will see some combinations and what they mean.

  • Chmod 777 – Read, write and execute for owners, groups and others
  • Chmod 755 – Read, write and execute for owners, read and execute for groups and others
  • Chmod 655 – Read and write for owners, read and execute for groups and others

Dosya ve dizin için ihtiyacınıza göre kombinasyonlar da vardır.

Chmod 777 Kullanımı

Her sınıf için dosya izinlerini ayarladıktan sonra, aşağıdaki komut satırını girerek Chmod komutunu başlatabileceksiniz:

CHMOD 777 [DOSYA KONUMU VE ADI]

Alternatif olarak, dosyayı seçmek ve ardından özelliklere tıklamak ve dosya veya dizin için izin seçmek mümkündür.

gadget'çı

yakın zamanda Gönderilenler

How Second-Screen Habits Turned Sports Betting Into a Mobile-First Experience

Watching sport does not feel as self contained as it once did. It used to…

4 hafta önce

Why Your “Stress Response” is Unique: A Deep Dive into Enneagram Triggers

You're in the same meeting as your coworker. The deadline just got moved up by…

2 ay önce

Are Lone Worker Apps A Worthwhile Investment?

Imagine working alone on a late shift, driving between job sites, or checking a property…

2 ay önce

Dijital High-Roller: Yüksek Bahisli Bahisler Neden Kaçırılmayacak Yeni Oyun Türü Haline Geldi?

Birkaç yıl önce içerik oluşturma dünyasında temel bir şey değişti. Bir süre için...

6 ay önce

Cep telefonları kumarhane sektörünün geleceğini nasıl şekillendiriyor?

İlk kumarhanenin 17. yüzyılda açılmasından bu yana, bu sektör...

8 ay ago

Prenses ve Fetih'te Tüm Grupların Kilidi Nasıl Açılır - Tüm Açılabilir Irklar ve Krallıklar için Eksiksiz Kılavuz

Princess & Conquest'te birkaç saat bile geçirdiyseniz, büyük olasılıkla...

9 ay önce