?????Linux?д??????????????
?????Aaron Kili ???????[ 2017/2/13 10:40:06 ] ?????????????? Linux
??????????????????????????????????????? Linux ????????????????????/д???????????????У?????????????? Linux ?ж??????(??????)??????????????д?????
?????????????????????????????Ч???????????????????????????????д??????????????????????顣
????????????л???????????????飬???????????????
????$ sudo mkdir -p /var/www/reports/
????$ sudo groupadd project
????????????? /var/www/reports/ ??д??????????? project ???С?
????$ sudo usermod -a -G project tecmint
??
????????????
????????????????????????????
????· -a – ????????????????С?
????· -G – ?????????
????· project – ??????
????· tecmint – ???е????????
????????????????????????????-R ???ò??????????????У?
????$ sudo chgrp -R project /var/www/reports/
????$ sudo chmod -R 2775 /var/www/reports/
?????????????? chmod ?????е? 2775??
????· 2 - ?? setGID λ????ζ???′???????????????????????飬?′???????????и????? setGID λ??
????· 7 - ????????? rwx ????
????· 7 - ???? rwx ????
????· 5 - ????????? rx ????
??????????????????????????????????????????????????У?
????$ sudo useradd -m -c "Aaron Kili" -s/bin/bash -G project aaronkilik
????$ sudo useradd -m -c "John Doo" -s/bin/bash -G project john
????$ sudo useradd -m -c "Ravi Saive" -s/bin/bash -G project ravi
??????????????????洢??????????????????
????$ sudo mkdir -p /var/www/reports/aaronkilik_reports
????$ sudo mkdir -p /var/www/reports/johndoo_reports
????$ sudo mkdir -p /var/www/reports/ravi_reports
???????????????????/???????????????????????????
????????????!?????У????????????????????????????????д?????????????? Linux ?е????/?飬?????ι??????/????????
??????
???·???
??????????????????
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