当前位置:网站首页>2022.07.04
2022.07.04
2022-07-07 19:16:00 【ifuudoudou】
Class hour 13


I made another mistake when creating new users , The panel must be adjusted to root Under the table of contents , But adjust to root Authentication password is required under the directory . When authenticating the password authentication failure, So we need to reuse sudo passwd root This instruction is used to authenticate the password .
![]()
Now after the user is created , A user group will be created by default .
So where is this user group ?
It can be used cat /etc/group Check it out. .
![]()
You can see that if you create a user , If you don't specify a group , By default, a group with the same user name will be created .
because root Permission is the highest , therefore id yes 0.
So how to put this test01 The user group of is modified ?

adopt usermod -g root test01 Just put test01 This user is moved to root This group .
So sometimes , A user belongs to multiple user groups at the same time , And how to do it ?
This requires additional .

Just pay attention to when adding ,-g Must use capital -G.
So how to create user groups directly ?


establish .
take test01 Append to test02 In the user group of .
![]()
After deleting the Group , The information of the group to which the user belongs will also be updated .
Class hour 14
So how to modify the Group ?

The first change id It's simple , Direct use “groupmod -g Modified id Group name ” That's all right. .
Modify the group name directly “groupmod -n Modified group name The original group name ” That's all right. .
Class hour 15 permissions


First switch back to your own user , then ll View details .
The first information you can see is the file type ,d The beginning is the directory , - It's a normal file .
rwx Represents the user's permissions ,-xr Is the permission of the user group , Later, there will be other permissions .
When I use vim There was an error when creating a new file .

It is displayed as asking me to enter detailed instructions ( I tried typing sudo It doesn't work )
Then I tried vim.tiny solve .
Remember when editing files ,i Is to enter the input text mode ,esc After the introduction of text mode , Press : key , Then input wq To save and launch .


So you can see , This newly added file , Only the current user has rw( Reading and writing ) Authority , Other users only have read permission .
How to cancel or increase the permissions of other users ?

You can see the use of chmod That's all right. . Add or subtract with symbols .
So how to set permissions for user groups ?
Setting permissions for user groups is similar , But add one -R Use recursive settings .
Notice when adding the third item , Be sure to use small o.
Setting permissions on directories is the same . You can use —R Recursive settings .

Class hour 16 Remote management

Input ipconfig You can go to cmd Check your own ip Address .
And in the linux You need to enter ifconfig.

utilize ping+ The website can see the returned information .ctrl+c Cancel .


For the experiment , Another computer is installed in the video .
He used clones to directly build a .


边栏推荐
- Uvalive – 4621 CAV greed + analysis "suggestions collection"
- Redis publishing and subscription
- Flipping Game(枚举)
- 6. About JWT
- 2022.07.05
- [mime notes]
- How many times is PTA 1101 B than a
- Redis
- Continuous test (CT) practical experience sharing
- Will low code help enterprises' digital transformation make programmers unemployed?
猜你喜欢

Chief technology officer of Pasqual: analog quantum computing takes the lead in bringing quantum advantages to industry

博睿数据入选《2022爱分析 · IT运维厂商全景报告》

Differences between rip and OSPF and configuration commands

基于图像和激光的多模态点云融合与视觉定位

Reuse of data validation framework Apache bval

2022上半年朋友圈都在传的10本书,找到了

Basic concepts and properties of binary tree

【软件测试】从企业版BOSS直聘,看求职简历,你没被面上是有原因的

PV static creation and dynamic creation

DeSci:去中心化科学是Web3.0的新趋势?
随机推荐
[mime notes]
Numpy——axis
How many are there (Lua)
I feel cheated. Wechat tests the function of "size number" internally, and two wechat can be registered with the same mobile number
基于图像和激光的多模态点云融合与视觉定位
Key points of anti reptile: identifying reptiles
Reject policy of thread pool
POJ 2392 Space Elevator
SD_ DATA_ SEND_ SHIFT_ REGISTER
网易云信参与中国信通院《实时音视频服务(RTC)基础能力要求及评估方法》标准编制...
Multimodal point cloud fusion and visual location based on image and laser
Draw squares with Obama (Lua)
Learn open62541 -- [67] add custom enum and display name
脑洞从何而来?加州大学最新研究:有创造力的人神经连接会「抄近道」
虚拟数字人里的生意经
Redis集群与扩展
Nat address translation
【Base64笔记】「建议收藏」
CVPR 2022 - learning non target knowledge for semantic segmentation of small samples
testing and SQA_动态白盒測试[通俗易懂]