Understand permission of a file in Linux(File වලට permission දෙමු)

මම දැන් ඔයාලට කියල දෙන්න යන්නෙ කොහොමද අපි linux වලදි file එකකට read, write, execute කියන permission දෙන්නෙ කියල මේ post එකේදි මන් කියල දෙන්නම් කොහොමද permission check කරන්නෙ කියලා

හරි මම මුලින්ම file එකක් හදනව

0_1569374198712_Screen Shot 2019-09-25 at 6.46.17 AM.png

ඔයාලට දැන් පේනව මේ file එකේ -rw-r--r-- කියල අකුරු වගයක් තියෙනව මේ තියෙන්නෙ users ලට permission බෙදිල යන විදිය.
මේ තියෙන්නේ ප්‍රධාන permission 3
r - read
w - write
x - execute


0_1569374595380_Screen Shot 2019-09-25 at 6.52.59 AM.png

rwx තුනම file එකේ පෙන්නනවා කියන්නේ එ file එකට read write execute කියන permission තුනම දීල තියෙනව් කියන එක.

මේ වගේ set 3ක් එක ෆයිල් එකක තියෙනව එ මොනාද ඒ
පලව්වෙනි සෙට් එක - ෆයිල් එක හදපු එක්කෙනාට තියෙන permisson (owner of the file )
දෙවනි සෙට් එක - file එකට access තියෙන membersලට දෙන permission
තුන්වෙනි සෙට් එක - අනිත් usersලට තියෙන permission

Comments

Popular posts from this blog

Lets talk about bash script

Logical Operators in bash script(And, OR, NOT)