当前位置:网站首页>2022.07.04
2022.07.04
2022-07-07 17:01:00 【ifuudoudou】
课时13


在建立新的用户时我又犯了一个错误,必须要将面板调整到root目录下,但是调整到root目录下需要认证密码。认证密码时显示authentication failure,所以要重新用sudo passwd root这个指令来认证密码。
![]()
现在用户创建完毕后,这里会默认创建一个用户组。
那么这个用户组在哪里呢?
可以用cat /etc/group来查看。
![]()
可以看到如果创建用户的时候,不指定一个组的话,会默认为创建一个跟用户名一样的组。
由于root权限是最高的,所以id是0.
那么如何把这个test01的用户组给修改呢?

通过usermod -g root test01就把test01这个用户给移动到root这个组了。
那么有时候,一个用户同时归属于多个用户组,又该如何做呢?
这就要用到追加了。

只是注意在追加时,-g必须要用大写的-G。
那么如何直接创建用户组呢?


创建。
将test01追加到test02的用户组里面。
![]()
删除组之后,用户所属的组的信息也会更新。
课时14
那么如何修改组呢?

首先修改id很简单,直接用“groupmod -g 修改的id 组名”就可以了。
修改组名就直接用“groupmod -n 修改的组名 原来的组名”就可以了。
课时15 权限设置


首先切换回自己的用户,然后ll查看详细信息。
可以看到第一个信息就是文件类型,d开头的就是目录, -就是普通文件。
rwx代表用户的权限,-xr是用户组的权限,以后就是其他权限。
在我使用 vim 建立新文件的时候出了一个错误。

显示为要我输入详细指令(我试着输入了sudo 也没有用)
然后我尝试了vim.tiny解决。
记住在编辑文件时,i是进入输入文本模式,esc推出文本模式之后,按:键,然后输入wq才能保存并推出。


那么可以看出,这个新添加的文件,只有当前的用户有rw(读写)的权限,其他用户只有读的权限。
要如何把其他用户的权限取消或者增加呢?

可以看到利用chmod就可以了。增加或者减去用符号。
那么如何对用户组设置权限呢?
对用户组权限设置差不多,但是要加一个-R利用递归来设置。
注意加第三项时,一定要用小o。
对目录设置权限也是一样的。可以利用—R递归来设置。

课时16 远程管理

输入ipconfig就可以在cmd里面查看自己的ip地址。
而在linux里面要输入ifconfig。

利用ping+网址就可以看返回的信息。ctrl+c取消。


为了实验,视频里面再安装了一台电脑。
他从快道里面用克隆直接建立了一个。


边栏推荐
- How much does it cost to develop a small program mall?
- Desci: is decentralized science the new trend of Web3.0?
- Charles+drony的APP抓包
- Basic concepts and properties of binary tree
- 面试唯品会实习测试岗、抖音实习测试岗【真实投稿】
- SD_ DATA_ RECEIVE_ SHIFT_ REGISTER
- [information security laws and regulations] review
- Short selling, overprinting and stock keeping, Oriental selection actually sold 2.66 million books in Tiktok in one month
- Thread factory in thread pool
- 企业展厅设计中常用的三种多媒体技术形式
猜你喜欢

RISCV64

Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布

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

Mathematical analysis_ Notes_ Chapter 11: Fourier series

标准ACL与扩展ACL

In the first half of 2022, I found 10 books that have been passed around by my circle of friends

Policy mode - unity

Continuous test (CT) practical experience sharing

Redis

Basic operation of chain binary tree (implemented in C language)
随机推荐
[C language] string function
Datasimba launched wechat applet, and datanuza accepted the test of the whole scene| StartDT Hackathon
2022-07-04 matlab reads video frames and saves them
Basic concepts and properties of binary tree
2022.07.02
Usage of PHP interview questions foreach ($arr as $value) and foreach ($arr as $value)
Mathematical analysis_ Notes_ Chapter 11: Fourier series
【MIME笔记】
脑洞从何而来?加州大学最新研究:有创造力的人神经连接会「抄近道」
Wechat web debugging 8.0.19 replace the X5 kernel with xweb, so the X5 debugging method can no longer be used. Now there is a solution
[Tawang methodology] Tawang 3W consumption strategy - U & a research method
The performance and efficiency of the model that can do three segmentation tasks at the same time is better than maskformer! Meta & UIUC proposes a general segmentation model with better performance t
RISCV64
Rules for filling in volunteers for college entrance examination
[paper sharing] where's crypto?
gsap动画库
微服务远程Debug,Nocalhost + Rainbond微服务开发第二弹
企业MES制造执行系统的分类与应用
Reinforcement learning - learning notes 8 | Q-learning
来了!GaussDB(for Cassandra)新特性亮相