当前位置:网站首页>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 .
边栏推荐
- C语言指针经典面试题——第一弹
- 【FAQ】华为帐号服务报错 907135701的常见原因总结和解决方法
- Batch distribution of SSH keys and batch execution of ansible
- Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
- Hands on deep learning (III) -- Torch Operation (sorting out documents in detail)
- El Table Radio select and hide the select all box
- How can Huawei online match improve the success rate of player matching
- Latex error: missing delimiter (. Inserted) {\xi \left( {p,{p_q}} \right)} \right|}}
- Legion is a network penetration tool
- Golang Modules
猜你喜欢
智慧路灯杆水库区安全监测应用
Advanced technology management - how to design and follow up the performance of students at different levels
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
转载:等比数列的求和公式,及其推导过程
Hands on deep learning (35) -- text preprocessing (NLP)
El Table Radio select and hide the select all box
【Day1】 deep-learning-basics
What are the advantages of automation?
Vs201 solution to failure to open source file HPP (or link library file)
How web pages interact with applets
随机推荐
Exercise 9-1 time conversion (15 points)
PHP代码审计3—系统重装漏洞
Matlab tips (25) competitive neural network and SOM neural network
Golang Modules
Latex insert picture, insert formula
If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
Number of relationship models
Write a mobile date selector component by yourself
C language pointer interview question - the second bullet
SQL replying to comments
Hands on deep learning (33) -- style transfer
leetcode1-3
Go context basic introduction
Dos:disk operating system, including core startup program and command program
Container cloud notes
Three schemes of ZK double machine room
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
xxl-job惊艳的设计,怎能叫人不爱
uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前
2021-08-11 function pointer