Thursday, March 15, 2018

Numeric Based Permissions သတ်မှတ်ပုံ

ကျွန်တော်တို့ linux မှာ permission သတ်မှတ်တဲ့အခါ
Decimal ကိုသုံး သလို Symbolic နဲ့ chmod
command ကို အသုံးပြုကြပါတယ်
အဓိကအားဖြင့်ပြောပြချင်တာက Numeric Based Permissions
အကြောင်းပါပဲ
ဘာကြောင့်အခုလို သုံးလဲဆိုတာ အောက်မှာ လေ့လာနိုင်ပါတယ်

Octal          Binary          String            Description

0                   000                   ---                  No permissions
1                   001                   --x                  Execute only
2                   010                   -w-                  Write only
3                   011                   -wx                  Write and execute (2 + 1)
4                   100                   r--                  Read only
5                   101                   r-x                  Read and execute (4 + 1)
6                   110                   rw-                  Read and write (4 + 2)
7                   111                   rwx                  Read, write,and execute  (4+2+1)

Symbolic         rwx     r-x      r--
Binary             111     101      100
Decimal           7         5           4

permission change မယ်ဆိုရင် command က

#chmod 754 file

အခုဆို numeric based permissions အကြောင်းကို သိသွားလောက်ပြီထင်ပါတယ်

ကျေးဇူးတင်ပါတယ်



No comments:

Post a Comment