当前位置:网站首页>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
边栏推荐
- Implementation of converting PCM file to WAV
- Regular expression
- The R language cartools package divides the data, the scale function scales the data, the KNN function of the class package constructs the k-nearest neighbor classifier, and the table function calcula
- 实现一个Prometheus exporter
- R语言使用epiDisplay包的tableStack函数制作统计汇总表格(基于目标变量分组的描述性统计、假设检验等)、不设置by参数则计算数据框指定数据列范围的基础描述性统计信息
- Introduction to easyclick database
- 1380. Lucky number in matrix / 1672 Total assets of the richest customers
- 搭建一个通用监控告警平台,架构上需要有哪些设计
- 毕业总结
- 洞态在某互联⽹⾦融科技企业的最佳落地实践
猜你喜欢
Lumiprobe bifunctional crosslinker sulfo cyanine 5 bis NHS ester
Livedata postvalue will "lose" data
解决方案:可以ping别人,但是别人不能ping我
linux下清理系统缓存并释放内存
如何使用物联网低代码平台进行个人设置?
Image acquisition and playback of coaxpress high speed camera based on pxie interface
After studying 11 kinds of real-time chat software, I found that they all have these functions
11、用户、组和权限(1)
搭建一個通用監控告警平臺,架構上需要有哪些設計
Li Kou daily question - Day 32 -589 N × Preorder traversal of tree
随机推荐
Usage and underlying implementation principle of PriorityQueue
Popular science: what does it mean to enter the kernel state?
Lumiprobe Lumizol RNA 提取试剂解决方案
洞态在某互联⽹⾦融科技企业的最佳落地实践
研究了11种实时聊天软件,我发现都具备这些功能…
【快应用】text组件里的文字很多,旁边的div样式会被拉伸如何解决
GameFramework食用指南
Halcon image calibration enables subsequent image processing to become the same as the template image
搭建一个通用监控告警平台,架构上需要有哪些设计
Leetcode-83 delete duplicate elements in the sorting linked list
R语言使用epiDisplay包的followup.plot函数可视化多个ID(病例)监测指标的纵向随访图、使用n.of.lines参数指定显示的病例数
LeetCode-21合并两个有序链表
Lumiprobe bifunctional crosslinker sulfo cyanine 5 bis NHS ester
How to find the optimal learning rate
实现一个Prometheus exporter
R language ggplot2 visualization: visualize the line graph and add customized Y-axis label information to the line graph using the labels function
1、《创建您自己的NFT集合并发布一个Web3应用程序来展示它们》什么是NFT
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
Write it down once Net travel management background CPU Explosion Analysis
Lumiprobe non fluorescent alkyne EU (5-ethynyluridine)