当前位置:网站首页>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
边栏推荐
- Leetcode-83 delete duplicate elements in the sorting linked list
- 如何运营好技术相关的自媒体?
- AppGallery Connect场景化开发实战—图片存储分享
- R language ggplot2 visualization: gganimate creates a dynamic histogram animation (GIF), and displays the histogram and enter step by step along a given dimension in the animation_ Growth function and
- R语言epiDisplay包ordinal.or.display函数获取有序logistic回归模型的汇总统计信息(变量对应的优势比及其置信区间、以及假设检验的p值)、write.csv函数保存csv
- 摄像头的MIPI接口、DVP接口和CSI接口[通俗易懂]
- 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
- Lumiprobe biomolecular quantification - qudye Protein Quantification Kit
- Leetcode-160 intersecting linked list
- Thread forced join, thread forced join application scenarios
猜你喜欢

华为云专家详解GaussDB(for MySQL)新特性

每周推薦短視頻:警惕“現象”與“問題”相互混淆

精耕渠道共谋发展 福昕携手伟仕佳杰开展新产品培训大会

How to use the low code platform of the Internet of things for personal settings?

Li Kou daily question - Day 32 -589 N × Preorder traversal of tree

用WPF写一款开源方便、快捷的数据库文档查询、生成工具

每周推荐短视频:警惕“现象”与“问题”相互混淆

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

Lumiprobe bifunctional crosslinker sulfo cyanine 5 bis NHS ester

OpenAI|视频预训练 (VPT):基于观看未标记的在线视频的行动学习
随机推荐
Three.js学习-相机Camera的基本操作(了解向)
Leetcode-141 circular linked list
Principal component calculation weight
Case study on comprehensive competitiveness of principal components
Using OpenSSL encryption to rebound shell traffic
R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, and uses PCH parameters to customize the shape o
摄像头的MIPI接口、DVP接口和CSI接口[通俗易懂]
用WPF写一款开源方便、快捷的数据库文档查询、生成工具
Usage and underlying implementation principle of PriorityQueue
R language ggplot2 visualization: gganimate package transition_ Time function to create dynamic scatter animation (GIF), shadow_ The wake function configures the gradient falloff tailing effect of the
R语言ggplot2可视化:gganimate创建动态柱状图动画(gif)、在动画中沿给定维度逐步显示柱状图、enter_grow函数和enter_fade函数控制运动内插退出(渐变tweening)
力扣每日一题-第32天-1232. 缀点成线
Openai video pre training (VPT): action learning based on watching unmarked online videos
Popular science: what does it mean to enter the kernel state?
What designs are needed in the architecture to build a general monitoring and alarm platform
Graduation summary
Qfile read / write file operation in QT
Graduation season | Huawei experts teach the interview secret: how to get a high paying offer from a large factory?
实现一个Prometheus exporter
R语言ggplot2可视化:gganimate包transition_time函数创建动态散点图动画(gif)、shadow_wake函数配置动画的渐变效果(gradual falloff)拖尾效应