当前位置:网站首页>Rhcsa day 10 operation
Rhcsa day 10 operation
2022-07-04 10:17:00 【Attiude】
Homework today :
1. Create the following users 、 Groups and group membership :
1. Create a sysmgrs Group
2. Create user natasha At the same time specified sysmgrs As natasha Additional groups of
3. Create user harry At the same time specified sysmgrs As natasha Additional groups of
[[email protected] ~]# groupadd -g 1004 sysmgrs
[[email protected] ~]# useradd -u 1004 -g 1004 natasha
[[email protected] ~]# gpasswd -a natasha sysmgrs
Putting users “natasha” Add to “sysmgrs” In the group
[[email protected] ~]# useradd -u 1005 -g 1004 harry
[[email protected] ~]# gpasswd -a harry sysmgrs
Putting users “harry” Add to “sysmgrs” In the group

4. Create user sarah Appoint shell The type is /sbin/false( You do not have access to interactive on the system shell)
It's not sysmgrs Members of
5. Set up natasha 、 harry and sarah All of your passwords are 123

6. Create user lockuser, And specify home directory as /home/lock, Then lock the user
[[email protected] ~]# useradd -d /home/lock lockuser;passwd -l locser
Lock the user lockuser Password .
passwd: Successful operation
7. Create user limituser, gid by 1555,userid by 1666, Let its password in 10 Expires in days 8
[[email protected] ~]# useradd -g 1003 -u 1666 -e 10 limituser
8. Unlock lockuser, And set that the password must be changed the next time you log in

9. Give Way natasha With modification harry Password permissions (sudo)

10. Create user testuser And set the password , Change the user name to normaluser
[[email protected] ~]# useradd -p 123456 testuser
[[email protected] ~]# usermod -l noemaluser testuser
11. Delete lockuser
[[email protected] ~]# userdel lockuser
2. 755-》 What permissions do you have :
755 Corresponding primary user 、 Group users 、 Other users have read, write, and execute permissions
600-》 What permissions do you have
The primary user of the file has read and write permissions on the file
644-》 What permissions do you have
The primary user of the file has read and write permissions on the file , The readable permissions of the group user of the file , Readable permissions of all other users on the file .
边栏推荐
- A little feeling
- Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
- 华为联机对战如何提升玩家匹配成功几率
- System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
- Modules golang
- Kotlin:集合使用
- Lavel document reading notes -how to use @auth and @guest directives in lavel
- Basic principle of servlet and application of common API methods
- Development guidance document of CMDB
- C语言指针经典面试题——第一弹
猜你喜欢

智慧路灯杆水库区安全监测应用

C语言指针面试题——第二弹

Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)

Number of relationship models

对于程序员来说,伤害力度最大的话。。。

Machine learning -- neural network (IV): BP neural network

Work order management system OTRs

Servlet基本原理与常见API方法的应用
What are the advantages of automation?

C language pointer interview question - the second bullet
随机推荐
Pcl:: fromrosmsg alarm failed to find match for field 'intensity'
2. Data type
Dynamic address book
Servlet基本原理与常见API方法的应用
Hands on deep learning (33) -- style transfer
Devop basic command
Golang Modules
Golang type comparison
Legion is a network penetration tool
【OpenCV 例程200篇】218. 多行倾斜文字水印
百度研发三面惨遭滑铁卢:面试官一套组合拳让我当场懵逼
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
uniapp---初步使用websocket(长链接实现)
Custom type: structure, enumeration, union
Ruby时间格式转换strftime毫秒匹配格式
Ruby time format conversion strftime MS matching format
Exercise 9-5 address book sorting (20 points)
Baidu R & D suffered Waterloo on three sides: I was stunned by the interviewer's set of combination punches on the spot
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
For programmers, if it hurts the most...