当前位置:网站首页>11. Users, groups, and permissions (1)
11. Users, groups, and permissions (1)
2022-07-01 18:55:00 【51CTO】
1、Linux Security model
3A(authentication、authorization、accouting aduition): authentication 、 to grant authorization 、 Audit
user
Linux Each user in is through User ID(UID) To represent only
Administrators root: uid by 0
Ordinary users :1-60000 Automatically assigned
System users :1-499(centos6) 1-999(centos7) It is used for the daemon to obtain resources and allocate permissions
The logged in user :500+(centos6) 1000+(centos7) Interactive login for ordinary users
User group
Linux You can add one or more users to a user group , User groups also have GID (group id)
Administrators group root:0
The normal group :
System group :1-499(centos6) 1-999(centos7) It is used for the daemon to obtain resources and allocate permissions
The normal group :500+(centos6) 1000+(centos7) For users
The relationship between users and groups
The primary group of users : Users must belong to one and only one main group , By default, when creating a user, a group with the same name as the user name will be automatically created , As the primary group of users , Because there is only one user in this group , Also a private group ;
Additional group : A user can belong to more than one additional group ;

Security context
Linux Security context context: Running program , Process , Run as the process initiator , The permission of a process to read resources depends on the identity of the process operator ;
2、 User and group profiles
User profile
/etc/passwd ( User information , primary unix System user passwords are stored here ) /etc/shadow( Store user password related information )
/etc/passwd File format


/etc/shadow File format


encryption algorithm : It is generally used sha512, Algorithm of changing password :authconfig --passalgo=sha256 --update
Random password generation :


group File format

The name of the group Group password group id The current group has been added to the list of users
gshadow File format

The name of the group Group password Group administrator list List of users with the current group as an additional group : Multiple users are separated by commas ;
File operations (pwck grpck)
Detect whether there are errors in user and group configuration files
边栏推荐
- ES6数组去重的三个简单办法
- 为什么独立站卖家都开始做社交媒体营销?原来客户转化率能提高这么多!
- How to find customers for investment attraction in industrial parks
- Lumiprobe bifunctional crosslinker sulfo cyanine 5 bis NHS ester
- Leetcode-21 combines two ordered linked lists
- Relational database management system of easyclick
- How to realize the bottom layer of read-write lock in go question bank 16
- How to change guns for 2D characters
- ES6数组方法find()、findIndex()的总结「建议收藏」
- ACM MM 2022视频理解挑战赛视频分类赛道冠军AutoX团队技术分享
猜你喜欢

1380. Lucky number in matrix / 1672 Total assets of the richest customers

研究了11种实时聊天软件,我发现都具备这些功能…

透过华为军团看科技之变(六):智慧公路

Stanford, salesforce|maskvit: masked vision pre training for video prediction

Salesmartly has some tricks for Facebook chat!

关于企业中台规划和 IT 架构微服务转型

Write an open source, convenient and fast database document query and generation tool with WPF

Lumiprobe 双功能交联剂丨Sulfo-Cyanine5 双-NHS 酯

宏观视角看抖音全生态

搭建一個通用監控告警平臺,架構上需要有哪些設計
随机推荐
[Chongqing Guangdong education] basic psychology reference materials of Tianjin Normal University
Example explanation: move graph explorer to jupyterlab
力扣每日一题-第32天-1232. 缀点成线
Must see, time series analysis
Lumiprobe非荧光炔烃丨EU(5-乙炔基尿苷)
R语言使用epiDisplay包的dotplot函数通过点图的形式可视化不同区间数据点的频率、使用pch参数自定义指定点图数据点的形状
What if the reliability coefficient is low? How to calculate the reliability coefficient?
Halcon图片标定,使得后续图片处理过后变成与模板图片一样
隐私沙盒终于要来了
C language learning notes: type definition typedef and declaration external CSDN creation punch in
R语言使用dplyr包的transmute函数计算dataframe数据中的指定数据列的移动窗口均值、使用ggplot2包可视化移动均值与原始数据的折线图
linux下清理系统缓存并释放内存
透过华为军团看科技之变(六):智慧公路
Lumiprobe lumizol RNA extraction reagent solution
Li Kou daily question - Day 32 -1232 Dotted line
搭建一个通用监控告警平台,架构上需要有哪些设计
力扣每日一题-第32天-589.N×树的前序遍历
OpenAI|视频预训练 (VPT):基于观看未标记的在线视频的行动学习
Golang error handling
1380. Lucky number in matrix / 1672 Total assets of the richest customers