当前位置:网站首页>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
边栏推荐
- R语言caTools包进行数据划分、scale函数进行数据缩放、class包的knn函数构建K近邻分类器、table函数计算混淆矩阵
- R language uses the transmute function of dplyr package to calculate the moving window mean value of the specified data column in dataframe data, and uses ggplot2 package to visualize the line graph b
- Write an open source, convenient and fast database document query and generation tool with WPF
- 力扣每日一题-第32天-1232. 缀点成线
- Altair HyperWorks 2022软件安装包和安装教程
- How to use the low code platform of the Internet of things for personal settings?
- GAMES202作业0-环境搭建过程&解决遇到的问题
- About enterprise middle office planning and it architecture microservice transformation
- 1、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》什么是NFT
- R language uses follow up of epidisplay package Plot function visualizes the longitudinal follow-up map of multiple ID (case) monitoring indicators, and uses n.of The lines parameter specifies the num
猜你喜欢

How does factor analysis calculate weights?

Mysql database of easyclick

Technology implementation and Architecture Practice

Salesmartly has some tricks for Facebook chat!

Navicat premium 15 permanent cracking and 2021 latest idea cracking (valid for personal testing)

Leetcode-160 intersecting linked list

微服务大行其道的今天,Service Mesh是怎样一种存在?

斯坦福、Salesforce|MaskViT:蒙面视觉预训练用于视频预测

Altair HyperWorks 2022软件安装包和安装教程

Must see, time series analysis
随机推荐
Popular science: what does it mean to enter the kernel state?
Leetcode-160相交链表
Navicat premium 15 permanent cracking and 2021 latest idea cracking (valid for personal testing)
1380. Lucky number in matrix / 1672 Total assets of the richest customers
OpenAI|视频预训练 (VPT):基于观看未标记的在线视频的行动学习
R语言caTools包进行数据划分、scale函数进行数据缩放、class包的knn函数构建K近邻分类器、table函数计算混淆矩阵
C language learning notes: type definition typedef and declaration external CSDN creation punch in
GAMES202作业0-环境搭建过程&解决遇到的问题
华为云专家详解GaussDB(for MySQL)新特性
创建您自己的NFT集合并发布一个Web3应用程序来展示它们(介绍)
Must see, time series analysis
Qt中的QFile读写文件操作
2020,最新手机号码手机验证正则表达式,持续更新
Memo - about C # generating barcode
Leetcode-141环形链表
Technology implementation and Architecture Practice
Implementation of converting PCM file to WAV
实现一个Prometheus exporter
力扣每日一题-第32天-589.N×树的前序遍历
ACM mm 2022 video understanding challenge video classification track champion autox team technology sharing