One, change three categories of users (U: Genus Master G: Group O: other users) and their permissions
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/7A/B4/wKioL1aw2pXw_AVQAAA3e4PxwSM697.gif "title=" Chown1.gif "alt=" Wkiol1aw2pxw_avqaaa3e4pxwsm697.gif "/>
650) this.width=650; "style=" width:600px;height:353px; "src=" http://s3.51cto.com/wyfs02/M00/7A/B4/ Wkiol1aw2pbzqf-zaaeank7scsi689.gif "title=" Chown2.gif "height=" 353 "hspace=" 0 "border=" 0 "vspace=" 0 "width=" alt= " "Wkiol1aw2pbzqf-zaaeank7scsi689.gif"/>
chgrp: Change file group(Only administrators have permission to use)
-R: Recursively modifies the genus of directories and their internal files
--reference=path/to/somfile file ...
Refer to the genus Group of this file, set to the same group as this file
chmod: Modify file Permissions
Modify permissions for three categories of users:
chmod more File ... (8 binary notation available)
-R: Recursively modifies the owner of the directory and its internal files
--reference =path/to/somfile File ...
Refer to the owner and group of this file, and set it to belong to the same genus as this file.
modify a class of users or some kind of user rights
U Genus G Group O Other User a includes each class of users
chmod user category =more file ...
Modify a certain bit or some bit permission for a user of a class
U Genus G Group O Other User a includes each class of users
chmod user category +|-more file ...
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/B5/wKiom1aw2oLiS4NQAAA6SCZ5uUQ461.gif "style=" float: none; "title=" Chmod1.gif "alt=" Wkiom1aw2olis4nqaaa6scz5uuq461.gif "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/B5/wKiom1aw2oLQazq4AAB2OnXktls726.gif "style=" float: none; "title=" Chmod2.gif "alt=" Wkiom1aw2olqazq4aab2onxktls726.gif "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/B4/wKioL1aw2tHCK4IRAABznllIN8M823.gif "style=" float: none; "title=" Chmod3.gif "alt=" Wkiol1aw2thck4iraabznllin8m823.gif "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7A/B5/wKiom1aw2oOj8SuqAABJHNp97EY856.gif "style=" float: none; "title=" Chmod4.gif "alt=" Wkiom1aw2ooj8suqaabjhnp97ey856.gif "/>
Practice:
1. Create a new user with no home directory OpenStack
2, copy/etc/skel for/home/openstack
3, change/home/openstack and its internal files belong to the main group of OpenStack
4,/home/openstack and its internal files, group and other users do not have any access rights
Su-openstack
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/B4/wKioL1aw21yjuL9RAABzjRzb01Y177.gif "title=" exercises. gif "alt=" Wkiol1aw21yjul9raabzjrzb01y177.gif "/>
Exercise 2:
Manual nano Add user hive, basic Group Hive (500), additional group MyGroup
①nano/etc/group②nano/etc/passwd③nano/etc/shadow ...
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/B4/wKioL1aw3PKTD4XjAAAa5shLYFY050.png "style=" float: none; "title=" Practice 2-0.png "height=" 129 "width=" 301 "alt=" Wkiol1aw3pktd4xjaaaa5shlyfy050.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7A/B4/wKioL1aw3PPSySQPAAAsiZgXk0A773.gif "style=" float: none; "title=" Practice 2-1.gif "alt=" Wkiol1aw3ppsysqpaaasizgxk0a773.gif "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7A/B4/wKioL1aw3POR4gwqAAA2EmtmLzo229.gif "style=" float: none; "title=" Practice 2-2.gif "alt=" Wkiol1aw3por4gwqaaa2emtmlzo229.gif "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7A/B5/wKiom1aw3KTBnOnaAAA8AEs4XWM844.gif "style=" float: none; "title=" Practice 2-3.gif "alt=" Wkiom1aw3ktbnonaaaa8aes4xwm844.gif "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7A/B5/wKiom1aw3KWzgI01AACOdTCmxNM806.gif "style=" float: none; "title=" Practice 2-4.gif "alt=" Wkiom1aw3kwzgi01aacodtcmxnm806.gif "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7A/B4/wKioL1aw3PSw_vyJAAA2e8sP_8I597.gif "style=" float: none; "title=" Practice 2-5.gif "alt=" Wkiol1aw3psw_vyjaaa2e8sp_8i597.gif "/>
This article is from the "11160930" blog, please be sure to keep this source http://11170930.blog.51cto.com/11160930/1740822
2016-2-2 Linux Basic Learning 8