当前位置:网站首页>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 .
边栏推荐
- SQL replying to comments
- Laravel文档阅读笔记-How to use @auth and @guest directives in Laravel
- Development guidance document of CMDB
- libmysqlclient.so.20: cannot open shared object file: No such file or directory
- Basic principle of servlet and application of common API methods
- Application of safety monitoring in zhizhilu Denggan reservoir area
- [200 opencv routines] 218 Multi line italic text watermark
- 【Day2】 convolutional-neural-networks
- Hands on deep learning (35) -- text preprocessing (NLP)
- Doris / Clickhouse / Hudi, a phased summary in June
猜你喜欢

libmysqlclient. so. 20: cannot open shared object file: No such file or directory

How web pages interact with applets

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

技术管理进阶——如何设计并跟进不同层级同学的绩效

Doris / Clickhouse / Hudi, a phased summary in June

The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago

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

Hands on deep learning (38) -- realize RNN from scratch

Basic principle of servlet and application of common API methods

Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
随机推荐
How can people not love the amazing design of XXL job
Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
Histogram equalization
Vs201 solution to failure to open source file HPP (or link library file)
【Day2】 convolutional-neural-networks
Legion is a network penetration tool
The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded
Exercise 8-10 output student grades (20 points)
Hands on deep learning (43) -- machine translation and its data construction
按键精灵跑商学习-商品数量、价格提醒、判断背包
C language pointer interview question - the second bullet
智慧路灯杆水库区安全监测应用
Latex insert picture, insert formula
System.currentTimeMillis() 和 System.nanoTime() 哪个更快?别用错了!
How web pages interact with applets
Deep learning 500 questions
Machine learning -- neural network (IV): BP neural network
Today's sleep quality record 78 points
leetcode729. My schedule 1
入职中国平安三周年的一些总结