当前位置:网站首页>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.
边栏推荐
猜你喜欢
stm32和电机开发(从架构图到文档编写)
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
阿里云SLB负载均衡产品基本概念与购买流程
SAP self-development records user login logs and other information
Principle and performance analysis of lepton lossless compression
SAP SEGW 事物码里的导航属性(Navigation Property) 和 EntitySet 使用方法
SAP ui5 objectpagelayout control usage sharing
Get to know linkerd project for the first time
Four common problems of e-commerce sellers' refund and cash return, with solutions
Taobao order interface | order flag remarks, may be the most stable and easy-to-use interface
随机推荐
2021-12-21 transaction record
A possible investment strategy and a possible fuzzy fast stock valuation method
A specific example of ABAP type and EDM type mapping in SAP segw transaction code
HiEngine:可媲美本地的云原生内存数据库引擎
Neural network of PRML reading notes (1)
Comprehensive upgrade of Taobao short video photosynthetic platform
JSON parsing error special character processing (really speechless... Troubleshooting for a long time)
单独编译内核模块
滴滴开源DELTA:AI开发者可轻松训练自然语言模型
NFT: how to make money with unique assets?
Reshape the power of multi cloud products with VMware innovation
LeetCode20.有效的括号
我在滴滴做开源
Language model
I met Tencent in the morning and took out 38K, which showed me the basic smallpox
Introduction aux contrôles de la page dynamique SAP ui5
太方便了,钉钉上就可完成代码发布审批啦!
Introduction to sap ui5 flexiblecolumnlayout control
jxl笔记
Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution