Showing posts with label �式咜方法zz. Show all posts
Showing posts with label �式咜方法zz. Show all posts

Tuesday, August 8, 2017

ubuntu 文件权限命令详解使用� �式和方法zz

ubuntu 文件权限命令详解使用� �式和方法zz


http://www.javaeye.com/topic/595628

? Ubuntu Linux ?????????????????chmod????????????????????????? Ubuntu Linux ?????root?????????chmod?????????????????sudo??????????sudo?????????????? ??sudo?????

chmod

Linux/Ubuntu ??????????????:?????(u)???(g)???(o)??chmod???????????chmod???????????????????????????????????????

?????

?????

chmod [-vR] mode ???

????:

mode ??????,???[ugoa] [+-=] [rwx]

u ????????

g ?????????????????

o ?????

a ??????????????(u)???(g)???(o)

+ ??????

- ??????

= ????????

r ????????

w ????????

x ????????

-v ???????????

-R ??????????????????????????

??

?????????ownlinux???????????????????????????????????????sudo??????????sudo????????????????sudo?????

ownlinux@server:/var/www$ sudo chmod a+rwx ownlinux

[sudo] password for ownlinux: ??????????

????

ownlinux@server:/var/www$ sudo chmod ugo+rwx ownlinux

[sudo] password for ownlinux: ??????????

??????????????????

?????

?????

chmod [-vR] [No] ???

????:

No ???????????

-v ???????????

-R ??????????????????????????

?????????????????????????????????????????????????????????????:)

????????(r)???(w)???(x)?????????????

ubuntu_ownlinux_chmod_1

????????????????????????

????????[No]?? ??????????????????????????????(u)??????(g)??????(o)???????????????????????rwx?????????????????????????????????

?????????????????????????????????????(u)???(4+2+1=7)??(g)???(4+2+1=7) ??(o)???(4+2+1=7??777??????????????�r�?????????�0?,??(w)???(x)???

??

??????????,?????????ownlinux?????????????????????(r)???(w)???(x)?????????????????

ownlinux@server:/var/www$ sudo chmod a+rwx ownlinux

[sudo] password for ownlinux: ??????????

??????

ownlinux@server:/var/www$ sudo chmod 777 ownlinux

[sudo] password for ownlinux: ??????????

??????????????????

?????????ownlinux????????????????(u)???????(r)???(w)???(x)???,??(g)???(o)???????(r)???(x)???,???????

ownlinux@server:/var/www$ sudo chmod 755 ownlinux

[sudo] password for ownlinux: ??????????

??????????????chmod???????????????????????????????????????????????????

????Ownlinux.cn?Linux/Ubuntu chmod??????????????

???????

????????

????
[??]

??

 chgrp [??] ? ??
?
chgrp [??] --reference=???? ??
 ???????????
[??]

??

 -c, --changes ?? --verbose??????????????
--dereference????????????????????????
-h, --no-dereference????????????????????????(??????????????????????)?
-f, --silent, --quiet????????????
--reference=??????????????????
-R, --recursive???????????????
-v, --verbose??????????????
[??]

????

????????????????????group??????ID?????/etc/group??????????
????????????????????????????????????????????????????????
[??]

????

 ??/opt/local /book/???????????????book??????
$ chgrp - R book /opt/local /book

?????????

?2? chown
??????????
???chown [??]
???-R???????????
-f????????????
???1)# chown user f1
2)# chown -R user1 /d1
?3?umask
????????????????????
???umask ???????????022????????002?
???# umask 044
????????777-umask


download file now

Read more »