当前位置:网站首页>User management and permissions
User management and permissions
2022-06-25 18:36:00 【ookaoooo】
1、Linux View all users in the
(1) In the terminal . Actually, just look at /etc/passwd Just a file .
(2) Look at the third parameter :500 The above , It's the user who built it later . Others are users of the system .
Or use cat /etc/passwd |cut -f 1 -d :
2、 User management command
useradd notes : Add users
adduser notes : Add users
userdel notes : Delete account
passwd notes : Set the password for the user
usermod notes : Modify user command , Can pass usermod To modify the login name 、 User's home directory, etc ;
pwcov notes : Synchronize users from /etc/passwd To /etc/shadow
pwck notes :pwck Is to verify the user profile /etc/passwd and /etc/shadow Whether the content of the document is legal or complete ;
pwunconv notes : yes pwcov The reverse operation of the system , It's from /etc/shadow and /etc/passwd establish /etc/passwd , It is then deleted /etc/shadow file ;
finger notes : View user information tool
id notes : Check the user's UID、GID And the user group to which they belong
chfn notes : Change user information tool
su notes : User switching tool
sudo notes :sudo It's through another user to execute the command (execute a command as another user),su It's used to switch users , Then complete the corresponding task by switching to the user , but sudo It can execute commands directly from behind , such as sudo Unwanted root The password can be executed root The implementation of bestowal is only root To execute the corresponding command ; But it has to pass visudo To edit /etc/sudoers To achieve ;
visudo notes :visodo It's the editor /etc/sudoers The order of ; You don't have to use this command , Direct use vi To edit /etc/sudoers The effect is the same ;
sudoedit notes : and sudo It's almost functional ;
3、 Manage user groups (group) A tool or command of ;
groupadd notes : Add user group ;
groupdel notes : Delete user group ;
groupmod notes : Modify user group information
groups notes : Displays the user group to which the user belongs
grpck
grpconv notes : adopt /etc/group and /etc/gshadow To synchronize or create /etc/gshadow , If /etc/gshadow Create if it does not exist ;
grpunconv notes : adopt /etc/group and /etc/gshadow File content to synchronize or create /etc/group , Then delete gshadow file
边栏推荐
- Training of long and difficult sentences in postgraduate entrance examination day88
- 【ELT.ZIP】OpenHarmony啃论文俱乐部—数据密集型应用内存压缩
- 【深入理解TcaplusDB技术】TcaplusDB运维单据
- Analysis on development scale and development trend of China's night economy industry in 2021 [figure]
- RMAN backup database_ Duplexing backup sets
- 跳一跳小游戏辅助(手动版本)py代码实现
- Web development solution to cross domain problems
- Apifox简单了解——WEB端测试的集大成者
- Analysis on policy, output and market scale of China's natural gas hydrogen production industry in 2020 [figure]
- solidity获取季度时间
猜你喜欢

【深入理解TcaplusDB技术】TcaplusDB运维单据

Redis6
![[in depth understanding of tcapulusdb technology] tcapulusdb operation and maintenance doc](/img/7b/8c4f1549054ee8c0184495d9e8e378.png)
[in depth understanding of tcapulusdb technology] tcapulusdb operation and maintenance doc

Svn introduction and Usage Summary
![[deeply understand tcapulusdb technology] tmonitor module architecture](/img/82/24a8502604fccb89fea9963c3f3495.png)
[deeply understand tcapulusdb technology] tmonitor module architecture
![Current situation of China's hydraulic cylinder industry in 2020 (with application fields, policies and regulations, supply and demand status and enterprise pattern) [figure]](/img/2e/439b5dce9634d4015430c9cf06c5de.jpg)
Current situation of China's hydraulic cylinder industry in 2020 (with application fields, policies and regulations, supply and demand status and enterprise pattern) [figure]
![[deeply understand tcapulusdb technology] create a game zone](/img/91/cf4eae9a4336ca407c0da805b9d909.png)
[deeply understand tcapulusdb technology] create a game zone

Anaconda download Tsinghua source

【深入理解TcaplusDB技术】创建游戏区

Tiger DAO VC产品正式上线,Seektiger生态的有力补充
随机推荐
Leetcode force buckle (Sword finger offer 26-30) 26 Substructure of tree 27 Image of binary tree 28 Symmetric binary tree 29 Print matrix 30 clockwise Stack containing min function
TCP/IP 测试题(三)
Dell r530 built in hot spare status change description
In 2021, China's private equity market is growing, and the scale of private equity fund management reaches 19.78 trillion yuan [figure]
2017 reading (word memory)
【深入理解TcaplusDB技术】TcaplusDB机型
Skills to master in advanced development
C#泛型类案例
Overview and trend analysis of China's foreign direct investment industry in 2020 [figure]
Analysis on market scale and supply of China's needle coke industry in 2020 [figure]
158 Bar _ Modèle Power bi utilise Dax + SVG pour créer des diagrammes d'affaires presque toutes les possibilités
Training of long and difficult sentences in postgraduate entrance examination English Day82
使用宝塔来进行MQTT服务器搭建
初探Oracle全栈虚拟机---GraalVM
Differences and relations between sequential table and array (easy to confuse), linear table and linked list
Basic operation details of binary search tree (BST) (complete code, including test cases)
How to sort massive data? How to process data between memory and hard disk?
Training of long and difficult sentences in postgraduate entrance examination day92
JVM understanding
Redis 5.0 data structure double end linked list source code analysis