1, the Replication/etc/skel directory is/home/tuser1, requires/home/tuser1 and its internal files belong to the group and other users do not have any access rights.
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/86/8D/wKioL1fDwTywtUifAAAp5erw3ew206.png "style=" float: none; "title=" 1.0.png "alt=" Wkiol1fdwtywtuifaaap5erw3ew206.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/86/8D/wKioL1fDwTyB_JEcAAAi1uEVZXc356.png "style=" float: none; "title=" 1.png "alt=" Wkiol1fdwtyb_jecaaai1uevzxc356.png "/>
2. Edit the/etc/group file and add the group Hadoop.
Vim/etc/group g to the end, O edit join a line
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/86/8D/wKioL1fDwUiDjUH_AAAR-UALUMU169.png "title=" 2.png " alt= "Wkiol1fdwuidjuh_aaar-ualumu169.png"/>
3. Manually edit the/ETC/PASSW D file to add a new line, adding user Hadoop, whose basic group ID is the Hadoop group ID number; its home directory is/home/hadoop.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/86/8D/wKiom1fDwV6huOwaAAAZqAgeKmo498.png "style=" float: none; "title=" 3.png "alt=" Wkiom1fdwv6huowaaaazqagekmo498.png "/>
4. Copy the/etc/skel directory as/home/hadoop, which requires that the genus Group and other users of the Hadoop directory be modified without any access rights.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/86/8D/wKioL1fDwV7Rsa4gAAA2t808Y2c070.png "style=" float: none; "title=" 4.png "alt=" Wkiol1fdwv7rsa4gaaa2t808y2c070.png "/>
5, modify the/home/hadoop directory and all the internal files of the owner of Hadoop, belong to Hadoop group.
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/86/8D/wKioL1fDwV7T-ssaAAAW1AdvClc677.png "style=" float: none; "title=" 5.png "alt=" Wkiol1fdwv7t-ssaaaaw1advclc677.png "/>
6. Display the lines in the/proc/meminfo file beginning with uppercase or lowercase s, in two ways;
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/86/8D/wKiom1fDwV7TnT6vAAAeUFXU2nI644.png "style=" float: none; "title=" 6.1.png "alt=" Wkiom1fdwv7tnt6vaaaeufxu2ni644.png "/>
7, display/ETC/PASSW D file whose default shell is non-/sbin/nologin user; 650) this.width=650; src= http://s2.51cto.com/wyfs02/M01/86/8D/ Wkiom1fdwv-wf9mjaaayhxqsglw822.png "style=" Float:none; "title=" 7.png "alt=" wkiom1fdwv-wf9mjaaayhxqsglw822.png "/ >
8. Display the user whose default shell is/bin/bash in/ETC/PASSW D file;
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/86/8D/wKioL1fDwV_xxxbUAAAhwuxYto8084.png "style=" float: none; "title=" 8.png "alt=" Wkiol1fdwv_xxxbuaaahwuxyto8084.png "/>
9. Find out one or two digits in/ETC/PASSW D file;
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/86/8D/wKiom1fDwV-QFFZ9AABKSG65iss803.png "style=" float: none; "title=" 9.1.png "alt=" Wkiom1fdwv-qffz9aabksg65iss803.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/86/8D/wKiom1fDwWDDdSaRAAAbZk1NXu8365.png "style=" float: none; "title=" 9.png "alt=" Wkiom1fdwwdddsaraaabzk1nxu8365.png "/>
10. Display the line beginning with at least one blank character in/boot/grub/grub.conf;
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/86/8D/wKioL1fDwWDxX25TAAAyqJL_8cM496.png "style=" float: none; "title=" 10.png "alt=" Wkiol1fdwwdxx25taaayqjl_8cm496.png "/>
11, the display/etc/rc.d/rc.sysinit file with the beginning of #, followed by at least one white space character, and then have at least one non-whitespace character line;
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/86/8D/wKioL1fDwWCgoBYGAABghXHp4Bw427.png "style=" float: none; "title=" 11.png "alt=" Wkiol1fdwwcgobygaabghxhp4bw427.png "/>
12, the Netstat-tan command execution results in the "LISTEN", followed by or with a blank character end of the line;
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/86/8D/wKiom1fDwWDTe2wNAAAjbEfaOv8955.png "style=" float: none; "title=" 12.png "alt=" Wkiom1fdwwdte2wnaaajbefaov8955.png "/>
13, add user bash, Testbash, basher, Nologin (this one user's shell is/sbin/nologin), and then find the current system on its user name and the default shell of the same user information;
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/86/8D/wKiom1fDwWCy3xNBAAA7PoWcc7s971.png "style=" float: none; "title=" 13.png "alt=" Wkiom1fdwwcy3xnbaaa7powcc7s971.png "/>
4. Copy the/etc/skel directory as/home/hadoop, which requires that the genus Group and other users of the Hadoop directory be modified without any access rights.
5, modify the/home/hadoop directory and all the internal files of the owner of Hadoop, belong to Hadoop group.
6. Display the lines in the/proc/meminfo file beginning with uppercase or lowercase s, in two ways;
7. Display/ETC/PASSW D file whose default shell is non-/sbin/nologin user;
8. Display the user whose default shell is/bin/bash in/ETC/PASSW D file;
9. Find out one or two digits in/ETC/PASSW D file;
Basics of Linux Learning (iv)