N33-Week4-sunflower

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.