Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet109/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   105   106   107   108   109   110   111   112   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 74 
]
With this style, there are only a few possibilities for numbers you can achieve when 
combining these octal values (each can only be used once). Therefore, we can get 
0

1

2

3

4

5

6
, and 
7
 by adding (or not adding) these numbers in different combinations. 
Some of them you'll almost never see, such as an object having write access but not 
read. For the most part, you'll see 
0

4

5

6
, and 
7
 used with 
chmod
 most often. For 
example, if we add 
Read
 and 
Write
, we get 
6
. If we add 
Read
 and 
Execute
, we get 
5

If we add all three, we get 
7
. If we add no permissions, we get 
0
. We repeat this for 
each column (
User

Group
, and 
Other
) to come up with a string of three numbers. 
Here are some examples:
• 
600
: User has read and write (4+2). No other permissions are set.
This is the same as 
-rw-------
.
• 
740
: User has read, write, and execute. Group has read. Other has nothing.
This is the same as 
-rwxr-----
.
• 
770
: Both user and group have full access (read, write, execute). Other has 
nothing.
This is the same as 
-rwxrwx---
.
• 
777
: Everyone has everything.
This is the same as 
-rwxrwxrwx
.
Going back to 
chmod
, we can use this numbering system in practice:
• 
chmod 600 filename.txt
• 
chmod 740 filename.txt
• 
chmod 770 filename.txt
Hopefully you get the idea. If you wanted to change the permissions of a directory, 
the 
-R
 option may be helpful to you. This makes the changes recursive, meaning 
that you'll not only make the changes to the directory but all files and directories 
underneath it in one shot:
chmod 770 -R mydir


Chapter 2

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   105   106   107   108   109   110   111   112   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish