Type of Permissions
1 2 4 : binary based
1 = 2^0 = x (executable)
2 = 2^1 = w (writable)
4 = 2^2 = r (readable)
Type of Users
3 ตัวแรกหมายถึง เจ้าของ = u (user)
3 ตัวที่สองหมายถึง กลุ่ม = g (group)
3 ตัวที่สามหมายถึง คนอื่น = o (other)
Changing permissions with chmod
chmod type+permission file
chmod type-permission file
เราจะกำหนดแบบไหนก็แลกเอานะครับ
ไม่ว่าจะเป็น
chmod 755 file
chmod +x file
มีประโยชน์กันคนละอย่างครับ
No comments:
Post a Comment