: it is the vertical reverse operation of pwcov. It is to create/etc/passwd from/etc/shadow and/etc/passwd, and then delete the/etc/shadow file;Finger Note: Tools for viewing user informationId Note: view the UID, GID, and user group of the user.Chfn Note: Change User information toolSu Note: User Switching ToolSudo No
system. In Linux, permissions and tasks are different because of different roles; it is worth noting that the user's role is identified by uid, especially uid. In system management, the system administrator must stick to the unique characteristics of uid;
Root User: The system is unique and real. You can log on to the system, operate any files and commands in the system, and have the highest permissions;Vi
/etc/sudoers through mongodo.
Except do: visodo is the command for editing/etc/sudoers. You can also use VI to edit/etc/sudoers.
Sudoedit: similar to sudo
2. User Group Management commands
Groupadd: Add a user gro
Reference Address: http://www.cnblogs.com/woshimrf/p/5906084.htmlCreate a new userCreate a user named: Zhangbiao[Email protected] ~]# AddUser ZhangbiaoTo initialize the password for this user, Linux determines the complexity of the password, but can be forcibly ignored:passwd-simplistic/ systematic re-entering the new password:passwd: All authentication tokens ha
Tags: options ash hang his automatic build user how much to create user TomatFirst, user and user groups (group) concept 1, users (user) conceptLinux is a typical multi-user operating system, we can build a number of users (
anyone to operate or access;3, the role of users to distinguish;Users in the system are sub-roles, in the Linux system, due to different roles, permissions and the tasks completed are different; it is noteworthy that the user's role is through UID and identification, especially UID; in system management, the system administrator must adhere to the unique characteristics of UID;Root User: The system is uniq
, restore the original identity
-S
Specifies the shell to be executed. By default, the shell of the specified user is executed in/ect/passwd.
[User Account]
User to be changed. The default value is root.
Sudo
[Function description]
Change identity Execute Command
# The sudo command allows users in
Add a user under CentOS and grant the User root permissionTest environment: CentOS 5.51. Add a user. First, use the adduser command to add a common user. The command is as follows:# Add
Add a user in CentOS and grant the User root permission
Test environment: CentOS 5.51. Add a user. First, use the adduser command to add a common user. The command is as follows:# Addus
After Fedora14 is installed, sudo is not enabled by default. you should first set sudo. The role of sudo is to allow the current non-root user to directly add sudo to the command before using commands without permissions, and then enter the password of the current user to complete the function of the root user, you don
Linux User Management-at the beginning, linux User Management --
Manage USER command Summary
Command
Note (special colors are required)
Useradd
The same as the adduser command. You can run this command to add
This article summarizes some common commands and parameters used to add or delete users and user groups in Linux.1. User Creation:Adduser phpq // create a phpq userPasswd phpq // set a password for the phpq user
2. Create a working groupGroupadd test // create a test workgro
to understand the root user login password. As the root user administrator, how can I authorize other ordinary users to perform root command operations without needing to know the root password? You can use sudo at this point.4,sudoers fileThe configuration file for sudo is:/etc/sudoers.The sudoers file allows the spe
system management has the most important content, it is best to let users have a separate user group, or the user under the permissions of the file is set to fully private In addition, the root user group is generally not easy to add ordinary users to enter,2,/etc/group content specific analysisThe content of/etc/grou
system management has the most important content, it is best to let users have a separate user group, or the user under the permissions of the file is set to fully private In addition, the root user group is generally not easy to add ordinary users to enter,2,/etc/group content specific analysisThe content of/etc/grou
After Fedora14 is installed, sudo is not enabled by default. You should first set sudo.The role of sudo is to allow the current non-root user to directly add sudo to the command before using commands without permissions, and then enter the password of the current user to complete the function of the root user, you don'
clean: 6. View User ID 7. Switch user identity Su Note: Options-never omit, must be switched together with the user's environment variables. Switching from a normal user to the root user is required to enter a password, while switching from the root user to the normal
, after sudo is used, the user can view the file because the yufei permission is granted.Note:1. When using sudo, enter the user's password instead of the root password.2. You need to set such a large permission for a user. Make sure that this user will not cause losses to your machine.
Run the root command on the sudo user
Detailed operation commands for CentOS user, group permissions, add delete user, etc.
The 1.Linux operating system is a multi-user multitasking operating system, including user accounts and group accounts,
the root, isn't it inconvenient? In this case, we can use sudo instead.The Default User Created by fedora is not in The sudo group. You need to edit the/etc/sudoers file to add the user. The file can only use the mongodo command. First, you need to switch to the rootSu-(Note that there is-, which is different from Su.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.