Linux?е???????????λ(sticky bit)???
?????Mr_listening ???????[ 2016/9/1 11:03:54 ] ?????????????? Linux
????Linux?μ???????
??????linux????????????????????????????????????????????????????????????????????з???????????????????????????????????????????????д??????в????????????????????????????????????????????????????????д?????????????????????????????????????????
???????????
?????????????????????????????????????linux?μ??????????????????????????????????μ??????tmp?????????tmp????other?????'rwt'??????????t???????????????????塣
?????????????????????????????tmp??????????????????linux??tmp???????Щ??????????????????????????????????????????????????rwx??????other???????rwt??
?????????????????????other?????????д????????????????????????????????????д?????????????????????????????????
??????????root???????????????′????????cur?????????????777????
??????????cur?????????test1??test2???????????????????????????????????other???????????????
?????????????л??????dh????£???????????????????????????????????????????????????????????/tmp???????????????ó?"rwxrwxrwx"??????????????κ??????????????′??????????????????????????????????????????dh???????????root?????cur???′?????????У????????tmp???????????????????????????????е????????????????????????????????????????
?????????????????????tmp?????????"rwxrwxrwt"???????t??????????????á?
???????λ?????λ??
?????????????t???????????????????????λ(sticky bit)???????????cur??????chmod o+t??????other??????????λ??
???????????????л???dh????????????????????????????????
?????????????????????????????root???????????????????????λ?????á?
???????λ????????????????????????????????????λ???????????????ü????д?????????????ü???????????????????????????и?????????????root??????????????????????????λ?????????????????????????????????????????д?????????????????????????????????????
???????????
????????????????????????????е???????????????????????????????????????????????п????????
????????У????????cur??other????????????????????'t'??λ??????'T'?????dh?????cur???????????????????????в??????
??????????????б??x???????????? ?????????漲??? ???籾?????λ????x?? ????Щ????? (suid?? sgid?? sticky) ????Сд??? (s?? s?? t).???? ??????д??? (S?? S?? T) ??
???????????
?????????λ????????????????????Ч
????????????Щ????????root????′????????test.c?????????????t?????????dh??????????????????????????????λ????????????????????????????????λ??????????á?
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11