Linux??????????????????????
???????????? ???????[ 2016/1/15 10:36:59 ] ?????????????? Linux
??????? ll ?? ls -l ???? ????л??????????????????
?????????
????-rw-r-r-
???????????????.r?????????w????д??x????????.?????????10??λ??.????????????????????.??????????????????????????.??????????????????????????????????.?????d????????????.
???????????????????????????????????Linux??????chmod???????????趨???????????.?????????chown????????????????????????????.???? chgrp???????????????????????????. ?????????Щ??????????.
????chmod ????
????chmod [who] [+ | | =] [mode] ?????
?????????и??????????? ????????who????????????е???????????????????
????u ???“?????user??”???????????????????.
????g ???“??饗group?????”????????????????????ID?????????.
????o ???“??????others?????”.
????a ???“???У?all?????”.??????????.
??????????????????
????+ ?????????.
????- ?????????.
????= ??????????????????????????????е????.
????????mode??????????????????????????????
????r ?????????????"4"
????w ??д??????????"2"
????x ????У?????????"1"??
????- ?????κ?????????????"0"??
????X ????????????Щ????????е???????????????????x ????.
????s ???????????????????????ID?????????????????.
????t ??????????????????豸??.
????u ????????????????????.
????g ????????????????????????????.
????o ????????????????????.
???????磺?????????????е????
????[root@hurricane init.d]# chmod +x xkzd.sh
?????????趨??
???????????????????????????????????壺0??????????1???????????? 2?????д????4??????
??????????????????????????????????3????0??7??????????????????u????g????o????
???????磬?????????????????????“??/д”?????????????4???????+2????д????6????/д????
?????????趨?????????????
????????chmod [mode] ?????
???????磺?????????????????????д?????????????????????????????????
????[root@hurricane init.d]# chmod 750 xkzd.sh
???????chmod???????????????????????
????????????????????????rwx?????????????????????????????????????????????????????????鷳???????????????????????????????????????????????????
????r: ??????4 w: ??????2 x????????1 ??????????0
?????????趨??????mode?????????????????????????????????????rwx??????????????????????1????????????0????????rwx r-x r- -????????????
????111 101 100
????????????λ????????????????????754?? ???磬????????a.txt?????????????? ??? ?????? ??????? ??? ?? ?? ?? ??д ?? ?? ?????
??????????????????????????????rw-rw-r--???????????????????110 110 100???????λ?????????????????????664??????? ?????????
????[root@localhost ~]# chmod 664 a.txt
????????????????rwx????????4+2+1??7?????rwxrwxrwx?????????????????????777????????????????????“??????????????????”?????????000???????????????
????-rwx------:??????????700?? -rwxr—r--:??????????744??
????-rw-rw-r-x:??????????665?? drwx—x—x:??????????711?? drwx------:??????????700??
??????
???·???
??????????????????
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