k3cの日記: ファイルパーミッション
日記 by
k3c
Linux File Permission Confusion
1. If the user is the owner of the file, see if the owner read bit (400) is set. If not, tough luck. Do no other tests.
2. If the user is a member of the group that owns the file see if the group read bit (040) is set. If not, tough luck. Do no other tests.
3. If the user is not the owner of the file nor a member of the group that owns the file, see if the other read bit (004) is set. If not, tough luck. Do no other tests.
ををを…オイラ誤解してたよ!ダサ!
勉強になりました。
ファイルパーミッション More ログイン