当前位置:网站首页>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.
边栏推荐
- OpenHarmony应用开发之Navigation组件详解
- 石臻臻的2021总结和2022展望 | 文末彩蛋
- How do e-commerce sellers refund in batches?
- Talk about my drawing skills in my writing career
- Overflow toolbar control in SAP ui5 view
- Taobao, pinduoduo, jd.com, Doudian order & Flag insertion remarks API solution
- 阿里云SLB负载均衡产品基本概念与购买流程
- Concurrent performance test of SAP Spartacus with JMeter
- How to connect the API interface of Taobao open platform (super detailed)
- Comprehensive upgrade of Taobao short video photosynthetic platform
猜你喜欢

Lepton 无损压缩原理及性能分析

RHCSA5

RHCAS6

国内市场上的BI软件,到底有啥区别

Pinduoduo flag insertion remarks API

超高效!Swagger-Yapi的秘密

HiEngine:可媲美本地的云原生内存数据库引擎

Shi Zhenzhen's 2021 summary and 2022 outlook | colorful eggs at the end of the article

CVPR 2022 | single step 3D target recognizer based on sparse transformer

非技术部门,如何参与 DevOps?
随机推荐
跨平台(32bit和64bit)的 printf 格式符 %lld 输出64位的解决方式
Concurrent performance test of SAP Spartacus with JMeter
Talk about my drawing skills in my writing career
leetcode:221. 最大正方形【dp状态转移的精髓】
《2022年中国银行业RPA供应商实力矩阵分析》研究报告正式启动
Insmod prompt invalid module format
Transactions from December 29, 2021 to January 4, 2022
Introduction to the principle of DNS
《信息系统项目管理师》备考笔记---信息化知识
ABAP editor in SAP segw transaction code
我在滴滴做开源
研究:数据安全工具在 60% 的情况下无法抵御勒索软件
太方便了,钉钉上就可完成代码发布审批啦!
2021.12.16-2021.12.20 empty four hand transaction records
A deep long article on the simplification and acceleration of join operation
Overflow toolbar control in SAP ui5 view
I'm doing open source in Didi
滴滴开源DELTA:AI开发者可轻松训练自然语言模型
Compilation principle reading notes (1/12)
Simply take stock reading notes (2/8)