当前位置:网站首页>Rocky basics 1
Rocky basics 1
2022-07-05 13:00:00 【51CTO】
1、 user
1)、 Administrators :root ,uid : 0
2)、 Ordinary users :1-60000 Automatically assigned
a、 System users :1-999(centos7 in the future ),1-499(centos6 before )
b、 The logged in user :1000+(centos7 in the future ),500+(centos6 before )
2、 User group
1)、 Administrators group :root ,gid : 0
2)、 The normal group :
a、 System group :1-999(centos7 in the future ),1-499(centos6 before ), Allocate permissions to the resources obtained by the daemon
b、 The normal group :1000+(centos7 in the future ),500+(centos6 before ), For users
3、passwd File format
With : Division
The first 1 Field : Login name ( user )
The first 2 Field : password
The first 2 Field :UID
The first 2 Field :GID
The first 2 Field : User description
The first 2 Field : Home directory
The first 2 Field : The user defaults to shell type
4、shadow File format
With : Division
Login name
User password : It's usually used sha512 encryption
from 1970 year 1 month 1 From the date of the last password change
The password can be changed in a few days (0 Can be changed at any time )
The password must be changed in a few days (99999 Never expire )
The system reminds the user a few days before the password expires ( Default to one week )
A few days after the password expires, the account will be locked
from 1970 year 1 month 1 Day count , How many days later the account will be invalid
example : Generate random 10 Is password
[[email protected] <sub>] #cat /dev/urandom |tr -dc '[:alnum:][email protected]#$%^' |head -c10
[email protected] #DS
[[email protected] </sub>] #openssl rand -base64 9
aNcISeq/BYIA
[[email protected] <sub>] #mkpasswd
v64y%FPzt
[[email protected] </sub>] #mkpasswd -l 9 -c 2 -C 2 -d 2 -s 2
#5egg_6SV
# notes :-l 9 Representative length (9 Bit character password )
-c 2 For lowercase letters (2 A lowercase letter )
-C 2 Represents capital letters (2 For capital letters )
-d 2 On behalf of the digital (2 Digit number )
-s 2 Represents a special symbol (2 Bit special symbol )
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
5、 CD auto mount autofs
In the use of linux in , We have such a magical catalogue , It doesn't exist at ordinary times , Access automatic generation , then
Automatic disc mount On this directory , stay centos7 It's all about /misc/cd/ Catalog .
Need to install autofs service :
installed autofs Then check whether the service is enabled , If it's not turned on , It needs to be turned on
systemctl status autofs # see autofs service
systemctl start autofs # Turn on autofs
systemctl restart autofs # restart autofs
Get into /misc/cd I'll be surprised to find that there are CD-ROM files inside
[[email protected] ~] #cd /misc/cd/
[[email protected] cd] #ls
AppStream EFI isolinux media.repo
BaseOS images LICENSE TRANS.TBL
- 1.
- 2.
- 3.
- 4.
边栏推荐
- Research: data security tools cannot resist blackmail software in 60% of cases
- How to connect the API interface of Taobao open platform (super detailed)
- 10 minute fitness method reading notes (2/5)
- 2021-12-21 transaction record
- Distance measuring sensor chip 4530a used in home intelligent lighting
- HiEngine:可媲美本地的云原生内存数据库引擎
- 百日完成国产数据库opengausss的开源任务--openGuass极简版3.0.0安装教程
- 实现 1~number 之间,所有数字的加和
- RHCSA4
- Didi open source Delta: AI developers can easily train natural language models
猜你喜欢
Concurrent performance test of SAP Spartacus with JMeter
【云原生】Nacos-TaskManager 任务管理的使用
关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
RHCAS6
2021-12-21 transaction record
Taobao order amount check error, avoid capital loss API
[cloud native] use of Nacos taskmanager task management
石臻臻的2021总结和2022展望 | 文末彩蛋
SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
CVPR 2022 | single step 3D target recognizer based on sparse transformer
随机推荐
Super efficient! The secret of swagger Yapi
逆波兰表达式
DNS的原理介绍
10 minute fitness method reading notes (3/5)
谈谈我写作生涯的画图技巧
Install rhel8.2 virtual machine
The solution of outputting 64 bits from printf format%lld of cross platform (32bit and 64bit)
关于 SAP UI5 floating footer 显示与否的单步调试以及使用 SAP UI5 的收益
stirring! 2022 open atom global open source summit registration is hot!
Transactions from December 27 to 28, 2021
How to connect the API interface of Taobao open platform (super detailed)
简单上手的页面请求和解析案例
2021-12-22 transaction record
[cloud native] use of Nacos taskmanager task management
MySQL 巨坑:update 更新慎用影响行数做判断!!!
RHCSA5
我在滴滴做开源
SAP self-development records user login logs and other information
How can non-technical departments participate in Devops?
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!