当前位置:网站首页>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 .
边栏推荐
- 对于程序员来说,伤害力度最大的话。。。
- Velodyne configuration command
- Fabric of kubernetes CNI plug-in
- leetcode1-3
- Doris / Clickhouse / Hudi, a phased summary in June
- 有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
- Hands on deep learning (40) -- short and long term memory network (LSTM)
- leetcode1-3
- El Table Radio select and hide the select all box
- System. Currenttimemillis() and system Nanotime (), which is faster? Don't use it wrong!
猜你喜欢
C语言指针面试题——第二弹
Latex learning insertion number - list of filled dots, bars, numbers
Hands on deep learning (37) -- cyclic neural network
MongoDB数据日期显示相差8小时 原因和解决方案
C language pointer interview question - the second bullet
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
智能网关助力提高工业数据采集和利用
Mmclassification annotation file generation
How can Huawei online match improve the success rate of player matching
Servlet基本原理与常见API方法的应用
随机推荐
Kotlin:集合使用
Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
Fabric of kubernetes CNI plug-in
Tables in the thesis of latex learning
A little feeling
Sword finger offer 31 Stack push in and pop-up sequence
Exercise 9-3 plane vector addition (15 points)
Dynamic memory management
Use C to extract all text in PDF files (support.Net core)
Laravel文档阅读笔记-How to use @auth and @guest directives in Laravel
Hands on deep learning (42) -- bi-directional recurrent neural network (BI RNN)
Hands on deep learning (37) -- cyclic neural network
Today's sleep quality record 78 points
Differences among opencv versions
Devop basic command
【Day2】 convolutional-neural-networks
2021-08-10 character pointer
MySQL case
SQL replying to comments
入职中国平安三周年的一些总结