Linux Fourth Chapter
User and file Rights Management
Experimental Environment The company's Linux host will be provided to the technical Department as a development server to use, according to the composition of the project team within the Department, the first need to set up the corresponding group accounts, user accounts, and as a directory to set permissions, but also need to set up a common data storage directory, Facilitates exchange of data between colleagues.
Requirements Description1.Create a user directory Create directories /tech/benet and /TECH/ACCP, respectively, for hosting folders for user accounts in each project group. For example, The host directory for the Kylin user should be located in /tech/benet/kylin. 2.Add a group account Add a group account for two project groups Benet,accp,gid number is set to 1001,1002 Add group account for technical department Tech,gid number is set to 3.Add user accountbenet kylin,tsengia,obama, host directory all use kylin user account set to 2018 year 12 31 later expires. The ACCP group consists of two users, Handy,cucci, and the host directory uses a folder with the same name as the account in the TECH/ACCP directory. Where the cucci User's login shell is set to /bin/sh. All of the above user accounts are required to be included in the tech group. During the testing phase, the initial password "123456" is only set for the three user accounts of Kylin,tsengia,handy, and other users do not set the password for the time being. 4.set directory Permissions and attribution. Set the genus Group of the/tech directory to tech, removing all permissions from all other users. Set the genus Group of the/tech/benet directory to benet, removing all permissions for all other users. Set the genus Group of the/TECH/ACCP directory to ACCP, removing all permissions for all other users. 5. Establish /public public directory, allow users in all technical groups to read, write, execute files, non-technical groups of users prohibit access to the secondary directory. Create a user directory
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/89/0B/wKiom1gF5gCxAaFDAAC9aFFYemQ672.jpg-wh_500x0-wm_3 -wmp_4-s_1276018511.jpg "title=" 4-1.jpg "alt=" Wkiom1gf5gcxaafdaac9affyemq672.jpg-wh_50 "/>
Create a Benet,accp,tech three group and specify the GID number
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/08/wKioL1gF5iTS8xncAAD-VkPpEKE745.jpg-wh_500x0-wm_3 -wmp_4-s_1168027429.jpg "title=" 4-2.jpg "alt=" Wkiol1gf5its8xncaad-vkppeke745.jpg-wh_50 "/>
The Benet group consists of three users, Kylin,tsengia,obama, and the host directory uses a folder with the same name as the account in the Tech/benet directory .
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/08/wKioL1gF5m-jn6lPAAFu6d7tsvU768.jpg-wh_500x0-wm_3 -wmp_4-s_3786136543.jpg "title=" 4-3.jpg "alt=" Wkiol1gf5m-jn6lpaafu6d7tsvu768.jpg-wh_50 "/>
The ACCP group consists of two users, Handy,cucci, and the host directory uses a folder with the same name as the account in the TECH/ACCP directory.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/08/wKioL1gF5pLh4-65AAFgLBioJ68190.jpg-wh_500x0-wm_3 -wmp_4-s_175943322.jpg "title=" 4-4.jpg "alt=" Wkiol1gf5plh4-65aafglbioj68190.jpg-wh_50 "/>
All of the above user accounts are required to be included in the tech group.
650) this.width=650; "Src=" Http://s1.51cto.com/wyfs02/M02/89/0B/wKiom1gF5q2xAPvVAAD42d3RQaU505.jpg-wh_500x0-wm_3 -wmp_4-s_4047123123.jpg "title=" 4-5.jpg "alt=" Wkiom1gf5q2xapvvaad42d3rqau505.jpg-wh_50 "/>
Kylin,tsengia,handy These three user accounts set the initial password "123456", other users do not set a password for the time being.
650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M00/89/08/wKioL1gF5tTA52HAAAFEnvW7mWk765.jpg-wh_500x0-wm_3 -wmp_4-s_4264871692.jpg "title=" 4-6.jpg "alt=" Wkiol1gf5tta52haaafenvw7mwk765.jpg-wh_50 "/>
Set the genus Group of the/tech directory to tech, removing all permissions from all other users.
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/89/08/wKioL1gF5u7wGA6KAADtigNm_Yg264.jpg-wh_500x0-wm_3 -wmp_4-s_2905532938.jpg "title=" 4-7.jpg "alt=" Wkiol1gf5u7wga6kaadtignm_yg264.jpg-wh_50 "/>
Set the genus Group of the/tech/benet directory to benet, removing all permissions for all other users.
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/0B/wKiom1gF5wfwEKzrAAE_czg3TZU085.jpg-wh_500x0-wm_3 -wmp_4-s_659120187.jpg "title=" 4-8.jpg "alt=" Wkiom1gf5wfwekzraae_czg3tzu085.jpg-wh_50 "/>
Set the genus Group of the/TECH/ACCP directory to ACCP, removing all permissions for all other users.
650) this.width=650; "Src=" Http://s4.51cto.com/wyfs02/M02/89/09/wKioL1gF5yXjyAgLAAF3qcunwII382.jpg-wh_500x0-wm_3 -wmp_4-s_2810692353.jpg "title=" 4-9.jpg "alt=" Wkiol1gf5yxjyaglaaf3qcunwii382.jpg-wh_50 "/>
Establish /public public directory, allow users in all technical groups to read, write, execute files, non-technical groups of users prohibit access to the secondary directory.
650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M02/89/0C/wKiom1gF5z7CzmOHAAEW0KJNxqI513.jpg-wh_500x0-wm_3 -wmp_4-s_897424557.jpg "title=" 4-10.jpg "alt=" Wkiom1gf5z7czmohaaew0kjnxqi513.jpg-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/89/09/wKioL1gF54jzz5O_AADwBj96_A4596.jpg-wh_500x0-wm_3 -wmp_4-s_1591822670.jpg "style=" Float:none; "title=" 4-11.jpg "alt=" Wkiol1gf54jzz5o_aadwbj96_a4596.jpg-wh_50 "/>
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M01/89/0C/wKiom1gF54iD9PewAADBvsh2E5U272.jpg-wh_500x0-wm_3 -wmp_4-s_1894144938.jpg "style=" Float:none; "title=" 4-12.jpg "alt=" Wkiom1gf54id9pewaadbvsh2e5u272.jpg-wh_50 "/>
The fourth chapter of Linux Experimental report