1,su command (su is switch user, which is shorthand for switching users)Format: Su-l USERNAME (-L is login, which is the shorthand for landing, where l can be omitted)If you do not specify username (user name), the default is root, so the command to switch to root is:
1. The command for user Switching in the Linux system is SU, and the syntax is:su [-FMP] [-C command] [-s Shell] [--help] [--version] [-] [USER [ARG]]Parameter description-F, –fast: Do not need to read the boot file (such as CSH.CSHRC, etc.), only for CSH or tcsh two kinds of shell.-L, –login: After this parameter is added, it is as if it were re-landed, most of
The default account for most Linux distributions is ordinary users, and changing system files or executing certain commands requires root, which requires the switch from the current user to the root user, the command for switching users in Linux is Su or Su-, below the SU co
A2sd is occupying 1 GB of memory for no reason. I am using 2 GB of cards, but I still don't know where to buckle it. The available memory is less than MB, so I cannot play a movie.
What's more, after several games are installed, a2sd becomes 300 m, and 700m is missing. debuggingProgramAppears
Installation Error: install_failed_insufficient_storage
Super Terminal for online query. The command a2sd remove,
Result All a2sd commands have been
which administrator. In particular, for the management of the server with many people involved in the management, it is best for each administrator's technical expertise and scope of management, and a targeted delegation of authority, and agreed on what tools they use to complete their work, then we need to use sudo.Through sudo, we can put some super-privileged targeted decentralization, and do not need to know the root password of ordinary users, s
today, when using the SU Switch User Doiido, the following error occurred:# Su-doiidoSU: Unable to set User id: Resource is temporarily unavailableDoiido user connections are not available with remote SSH tools such as SECURECRT. find the relevant information, found in CentO
involved in management, it is best for each administrator's technical expertise and management scope, and targeted delegated authority, and agreed to use which tools to complete its related work, then we need to use sudo.
With sudo, we can target certain super privileges and do not need a normal user to know the root password, so sudo is safer than the unrestricted Su
Su -- Super User
Su or su root: Convert the current identity to root, and the User Shell has not changed. therefore, some system commands cannot be used. su-,
each administrator's technical expertise and scope of management, and a targeted delegation of authority, and agreed on what tools they use to complete their work, then we need to use sudo.With Sudo, we can putSome super permissions are targeted, and do not require ordinary users to know the root password, so sudo relative to the unrestricted permission of Su, is still relatively safe, soSudo can also be r
Linux User management command-useradd passwd usermod chage userdel su instance, useraddusermod
User's home directory
Common User:/home/user name. Both the owner and the group belong to this user. The permission is 700.
Super
In the previous two sections, we introduced the basic knowledge of users and user groups and how to manage users and user groups. Next let's take a look at other user-related commands.Finger tool for viewing user informationChfn tool for changing user informationId: view the
Centos common user su to root prompts error, centosroot1. When a common user in CentOS7 executes SU, the following error is reported:
[test@ecs-1453 ~]$ su -Password: su: Authentication failureSolution: If the root
The Linux system provides two user permission management mechanisms: su and sudo. su is mainly used to switch users, while sudo users are used to improve execution permissions. The following describes in detail.
I. su command -- switch usersWith the su command, you can switc
Su Command and sudo serviceThe SU command is used to switch the user (switch the lander)Format:su [-] User name[-]: indicates an environment variable that uses a new userUse the [-] function:[Email protected] test1]# echo $PATH #查看root的环境变量 /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin[Ema
1,su Command
(su is switch user, which is shorthand for switching users)
Format: Su-l USERNAME (-L-Login, abbreviated for landing)
If you do not specify username (username), the default is root, so the command to switch to root is: su-root or direct
For Linux users, you can use the su and sudo commands. the use cases of these two commands are different. Su if your current identity is root, you can use the su command to switch to any other user (no password required), as shown below: [root @ lx200 ~] Su-oracle [o
For Lin
necessary, execute the "unset tmout" command to cancel the tmout variable setting.2 User Switching and power-up2.1SU Command __ Switch UserWith the SU command, you can switch to the specified other user with all the permissions of that user, and of course, the password for the target
Tags: alt edit sudoer file in Visudo sudo config exit parameterLet's review the previous section:
User groups Add Groupadd
User Group Modification Groupmod
User group Delete Groupdel
The job creates a group with ID 501 group1, then changes to Group2, and the ID becomes 502, and finally the group is deleted, with the following commands:
G
Su [-FMP] [-C command] [-s shell] [-- help] [-- version] [-] [user [Arg]-C command: the user who changed the account to user, and then executes the command to change it back to the original user.What is the difference between the su command and the
In daily operation in order to avoid some mis-operation, more secure management system, usually use the user identity is ordinary users, not root. When you need to perform some administrator command operation, then switch to the root user to execute.The way a normal user switches to the root user is:
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.