Demand
Add a user to a Linux system, user name:hrman uid:3000, basic group Hrman gid:3000, additional groups Hadoop gid:3800 ; Group and the anther does not have any permissions.
The user can log on to the system and create the file normally.
Configuration ideas
1. Create Basic group Hrman GID and additional group Hadoop 3800
2. Create user Hrman UID
3 . Write the required information for hrman loginto /etc/shadow
4, copy /etc/sekl/ to Home/hrman
5, change the owner, belong to the group is hive
6. Modify access rights for users and Groups
7. Create password for user using MD5 encryption Method
8. Login system to create the Test.txt file in the/ tmp directory
operation Steps
# Configure basic groups and additional groups
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/19/0d2325f4ad8e6be696a14ef4914239e8.png-wh_500x0-wm_3 -wmp_4-s_148192021.png "title=" 1.png "alt=" 0d2325f4ad8e6be696a14ef4914239e8.png-wh_ "/>
# Configure users
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/19/f31f16ba828bcdfde311f51f8c00062a.png-wh_500x0-wm_3 -wmp_4-s_3308033664.png "title=" 2.png "alt=" F31f16ba828bcdfde311f51f8c00062a.png-wh_ "/>
# Configure the information required for user login
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/19/cb3ebd741e0589ebb657d017c9f6db0e.png-wh_500x0-wm_3 -wmp_4-s_631569632.png "title=" 3.png "alt=" Cb3ebd741e0589ebb657d017c9f6db0e.png-wh_ "/>
# copy /etc/sekl/ to Home/hrman
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/19/c4b226c8dddab575c641836a17de2296.png-wh_500x0-wm_3 -wmp_4-s_1841067143.png "title=" 4.png "alt=" C4b226c8dddab575c641836a17de2296.png-wh_ "/>
# change owner, genus Group
650) this.width=650; "Src=" Https://s1.51cto.com/oss/201711/19/77b03fab6030bf09f501a2bda6368491.png-wh_500x0-wm_3 -wmp_4-s_3240649756.png "title=" 5.png "alt=" 77b03fab6030bf09f501a2bda6368491.png-wh_ "/>
# Modify group and anther access Rights
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/19/b59b7691fd9582d93be150b72844d76b.png-wh_500x0-wm_3 -wmp_4-s_3016771868.png "style=" Float:none; "title=" 6.png "alt=" B59b7691fd9582d93be150b72844d76b.png-wh_ "/>
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/19/a380c1feb7305efdd174a7506e76efcf.png-wh_500x0-wm_3 -wmp_4-s_1031432348.png "style=" Float:none; "title=" 6-1.png "alt=" A380c1feb7305efdd174a7506e76efcf.png-wh_ "/>
# Create user Password
650) this.width=650; "Src=" Https://s3.51cto.com/oss/201711/19/84d34c63cf72c69b5a0baac8611c10fb.png-wh_500x0-wm_3 -wmp_4-s_3121581988.png "style=" Float:none; "title=" 7.png "alt=" 84d34c63cf72c69b5a0baac8611c10fb.png-wh_ "/>
650) this.width=650; "Src=" Https://s5.51cto.com/oss/201711/19/e0ae13b6ba1de662963fc6c36fe9fbfa.png-wh_500x0-wm_3 -wmp_4-s_873207117.png "style=" Float:none; "title=" 7-1.png "alt=" E0ae13b6ba1de662963fc6c36fe9fbfa.png-wh_ "/>
# Login System
650) this.width=650; "Src=" Https://s4.51cto.com/oss/201711/19/3ef6fe9fca6449e1dffb83e405537425.png-wh_500x0-wm_3 -wmp_4-s_106907957.png "title=" 8.png "alt=" 3ef6fe9fca6449e1dffb83e405537425.png-wh_ "/>
This article is from the "Hrman" blog, make sure to keep this source http://12601987.blog.51cto.com/12591987/1983242
Manually create user accounts under Linux