1. Copy the/etc/skel directory to/home/tuser1. The/home/tuser1 and its internal file groups and other users are not authorized to access it.
2. Edit the/etc/group file and add the group hadoop
Run the vim command to open/etc/group, press g, O, and add a line at the end, and enter hadoop: X: 2027:
3. manually edit the/etc/passwd file and add a new row to add the user hadoop. The basic group ID is the ID of the hadoop group, and its home directory is/home/hadoop.
Run the vim command to open/etc/passwd, press g, O, and add a line at the end, and enter hadoop: X: 2023: 2027:/home/hadoop:/bin/bash.
4. Copy the/etc/skel directory to/home/hadoop. Modify the group of the hadoop directory and other users without any access permissions.
~] # Cp-r/etc/skel/home/hadoop & chmod go =/home/hadoop
5. Modify the/home/hadoop directory and all its internal files to hadoop, and the group to hadoop.
6. Display rows starting with uppercase or lowercase s in the/proc/meminfo file.
7. The default shell in the/etc/passwd file is displayed as a non-/sbin/nologin user.
8. display users whose default shell is/bin/bash in the/etc/passwd file.
9. Find one or two digits in the/etc/passwd file.
10. display the lines starting with at least one blank character in/boot/GRUB/grub. conf.
11. The/etc/rc. d/rc. sysinit file starts with #, followed by at least one blank character, and then contains at least one non-blank line
12. Execute the netstat-tan command and use the line 'listen' followed by a blank character in the execution result.
13. Add the user bash, testbash, Basher, and nologin (the shell of this user is/sbinlogin), and find out the information of the user with the same username as the default shell on the current system.
N33-Week4-sunflower