当前位置:网站首页>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 .


边栏推荐
- 微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹
- Learn open62541 -- [67] add custom enum and display name
- How much does it cost to develop a small program mall?
- Thread factory in thread pool
- Calculation of torque target value (ftorque) in servo torque control mode
- AI来搞财富分配比人更公平?来自DeepMind的多人博弈游戏研究
- 反爬虫的重点:识别爬虫
- The moveposition function of rigidbody2d of unity2d solves the problem of people or screen jitter when moving
- 6.关于jwt
- IP netns command (memo)
猜你喜欢

2022.07.05

PV静态创建和动态创建

The top of slashdata developer tool is up to you!!!

Standard ACL and extended ACL

99% of people don't know that privatized deployment is also a permanently free instant messaging software!
![[tpm2.0 principle and Application guide] Chapter 9, 10 and 11](/img/7f/0d4d91142bc3d79ea445a8f64afba7.png)
[tpm2.0 principle and Application guide] Chapter 9, 10 and 11

In 2021, the national average salary was released. Have you reached the standard?

How to choose the appropriate automated testing tools?

2022.07.02

RISCV64
随机推荐
[HDU] 5248 sequence transformation (greedy + dichotomy) [recommended collection]
SD_ DATA_ SEND_ SHIFT_ REGISTER
[mime notes]
二叉树的基本概念和性质
Where does brain hole come from? New research from the University of California: creative people's neural connections will "take shortcuts"
Numpy——2.数组的形状
How to estimate the value of "not selling pens" Chenguang?
App capture of charles+drony
虚拟数字人里的生意经
学习open62541 --- [67] 添加自定义Enum并显示名字
How much does it cost to develop a small program mall?
PTA 1101 B是A的多少倍
unity2d的Rigidbody2D的MovePosition函数移动时人物或屏幕抖动问题解决
Review of network attack and defense
Uvalive – 4621 CAV greed + analysis "suggestions collection"
Cloud security daily 220707: Cisco Expressway series and telepresence video communication server have found remote attack vulnerabilities and need to be upgraded as soon as possible
[Blue Bridge Cup training 100 questions] sort scratch from small to large. Blue Bridge Cup scratch competition special prediction programming question centralized training simulation exercise question
前首富,沉迷种田
cmd命令进入MySQL时报服务名或者命令错误(傻瓜式教学)
从39个kaggle竞赛中总结出来的图像分割的Tips和Tricks