当前位置:网站首页>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
边栏推荐
- 07 local method stack
- 网络安全检测与防范 练习题(三)
- 【深入理解TcaplusDB技术】单据受理之建表审批
- 【深入理解TcaplusDB技术】集群管理操作
- Training of long and difficult sentences in postgraduate entrance examination day92
- Redis 5.0 data structure double end linked list source code analysis
- Differences and relations between sequential table and array (easy to confuse), linear table and linked list
- LeetCode-78-子集
- SVN介绍及使用总结
- Under what circumstances do you need to manually write the @bean to the container to complete the implementation class
猜你喜欢
![Overview and trend analysis of China's CT examination equipment industry in 2021 [figure]](/img/e0/d4ed9a9d91534be0d956414f6abaaa.jpg)
Overview and trend analysis of China's CT examination equipment industry in 2021 [figure]
![[in depth understanding of tcapulusdb technology] business guide for creating doc acceptance](/img/e5/9c902f5d6aaeb7113e82d2c1084005.png)
[in depth understanding of tcapulusdb technology] business guide for creating doc acceptance
![[elt.zip] openharmony paper Club - memory compression for data intensive applications](/img/54/8248c1d95b04498d44a00ea94a6c85.png)
[elt.zip] openharmony paper Club - memory compression for data intensive applications

Dell R530内置热备盘状态变化说明
![[in depth understanding of tcapulusdb technology] how to realize single machine installation of tmonitor](/img/aa/3ea807aa0c8ea186f2b3449055d689.png)
[in depth understanding of tcapulusdb technology] how to realize single machine installation of tmonitor

两轮市场红海,利尔达芯智行如何乘风破浪?
![[in depth understanding of tcapulusdb technology] new models of tcapulusdb](/img/10/f94a5e1ebeaa803c754dd77351950f.png)
[in depth understanding of tcapulusdb technology] new models of tcapulusdb
![Analysis on China's aluminum foil output, trade and enterprise leading operation in 2021: dongyangguang aluminum foil output is stable [figure]](/img/e8/027e8a6cbdc4454e7a18ed7aa2122a.jpg)
Analysis on China's aluminum foil output, trade and enterprise leading operation in 2021: dongyangguang aluminum foil output is stable [figure]

【C语言练习——打印上三角及其变形(带空格版)】
![Analysis on development scale and development trend of China's night economy industry in 2021 [figure]](/img/57/d6821fca9a608bf33e78287cf26bae.jpg)
Analysis on development scale and development trend of China's night economy industry in 2021 [figure]
随机推荐
Redis configuration (Internet access, password)
RMAN backup database_ Skip offline, read-only, and inaccessible files
使用宝塔来进行MQTT服务器搭建
Boiled peanuts
Analysis on development scale and development trend of China's night economy industry in 2021 [figure]
Training of long and difficult sentences in postgraduate entrance examination day87
[in depth understanding of tcapulusdb technology] tcapulusdb operation and maintenance doc
Analysis on the market scale and pattern of contrast agents in China in 2021: Jiangsu Hengrui pharmaceutical, general electric, Yangzijiang Pharmaceutical Group, Bayer and bleco account for more than
Move graph explorer to jupyterab: use ges4jupyter to connect ges and explore graphs
想知道新股民怎样炒股票开户?在线开户安全么?
El table highly adaptive
Svn introduction and Usage Summary
TCP/IP 测试题(一)
RMAN备份数据库_目录
【深入理解TcaplusDB技术】集群管理操作
Command records of common data types for redis cli operations
[deeply understand tcapulusdb technology] table management of document acceptance
RMAN backup database_ Duplexing backup sets
Overview and trend analysis of China's CT examination equipment industry in 2021 [figure]
2017 reading (word memory)