I. Using the SU command to temporarily switch user Identities 1, SU's applicable conditions and Power SU command is to switch User's tool, how to understand it? For example, we use ordinary user Beinan login, but to add user tasks, execute useradd, Beinan the user does not have this permission, and this permission is exactly the root of the own. Solution cannot have two, one is to exit Beinan userI. Using t
Differences between Linux su and sudo commandsI. Use the su command to temporarily switch user identities 1. Conditions and power of su
The su command is a tool for switching users. How can this problem be solved? For example, if we log on as a normal user beinan, but want to add a user task and execute useradd, The be
I. Use the su command to temporarily switch user identities
1. Conditions and power of Su
The su command is a tool for switching users. How can this problem be solved? For example, if we log on as a normal user beinan, but want to add a user task and execute useradd, The beinan user does not have this permission, and this permission is exactly owned by the root
Linux su commandWe recommend that you use Su-root when you switch users, or you may find that some commands do notFor the difference between Su, Su-and sudo please look down1. Command functionThe role of SU is to change to the identity of other users, except the superuser, w
I. Using the SU command to temporarily switch user identities1, Su's applicable conditions and powerThe SU command is the tool to switch users, how to understand it? For example, we use ordinary user Beinan login, but to add user tasks, execute useradd, Beinan the user does not have this permission, and this permission is exactly the root of the own. Solution can not have two, one is to exit Beinan user, re
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: Su and sudo.1 , Su-(su is switch user, which is shorthand for s
Typically, a typical user can log on as the root user to configure the system at the administrator level by executing the "Su-" command and entering the correct root password.However, in order to further enhance the security of the system, it is necessary to establish a group of administrators, only allow users of this group to execute the "Su-" command to log on as the root user, and let other groups of us
Source: http://www.jb51.net/LINUXjishu/12713.htmlI. Using the SU command to temporarily switch user identities1, SU's applicable conditions and powerThe SU command is the tool to switch users, how to understand it? For example, we use ordinary user Beinan login, but to add user tasks, execute useradd, Beinan the user does not have this permission, and this permission is exactly the root of the own. Solution
I. Using the SU command to temporarily switch user identities1, SU's applicable conditions and powerThe SU command is the tool to switch users, how to understand it? For example, we use ordinary user Beinan login, but to add user tasks, execute useradd, Beinan the user does not have this permission, and this permission is exactly the root of the own. Solution can not have two, one is to exit Beinan user, re
Linux system, sometimes the ordinary user some things can not be done, unless it is the root user can do. Then you need to useThe SU command temporarily switches to root to work.su:substitute[' s?bst?tju?t] instead of userThe syntax for SU is:SU [option parameter] [user]-,-L,--login log in andChange to the user environment of the switch;-C,--commmand=commandExecutes a command and then exits the user environ
Differences between linux su and sudo commands: linuxsusudo commandsI. Use the su command to temporarily switch user identities1. Conditions and power of su
The su command is a tool for switching users. How can this problem be solved? For example, if we log on as a normal user beinan, but want to add a user task and ex
Su
Su is the simplest of the identity switch commands, you can switch any identity, the following first look at its basic parameters.1[Email protected]:~#su-h2Usage:su[Options] [LOGIN]3 4 Options:5-C,--Command Command Pass command to the invoked Shell6-H,--Help display this Help message and exit7-,-L,--Login MakeThe Shell ALoginShell8-M,-p,9
Command suSyntax: su [-] usernameCan be followed with '-' can also not, ordinary users su username is to switch to the root user, of course, the root user can also su to ordinary users. '-' The function of this character is, plus will initialize the current user's various environment variables, about the environment variables this part of the content Amin in the
First, let's look at su-run a shell with substitute user and group IDs on the man help page. That is to say, through su, we can start a shell program without providing users and group names. su is a binary executable file. The path of the command file is/bin/su. The following command is used to query the type and path
We recommend that you use Su-root when you switch users, or you may find that some commands do notFor the difference between Su, Su-and sudo please look down1. Command functionThe role of SU is to change to the identity of other users, except the superuser, who needs to type the user's password.2. How to usesu [-FMP] [
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 user can log on to the system normally, use the root user to log on to the system first, and then perform
We all know that very many files are only rooted to change, then in our usual development process is recommended to use the general account to login for development. Remember the ssh I mentioned earlier. We will also allow root login to be set to No. Switch to root when necessary to operate, so there is no risk.So how do we switch identities?1.suSu is the simplest identity switch name, with Su we can do whatever the user's switch, is generally
In daily operation in order to avoid some mis-operation, more secure management system, usually use the user identity is ordinary users, rather than 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: Su and sudo.1 , Su-(su is switch user, which is shortha
Tags: linux root su sudoSU command:1, SU Switch user command example: su-aming2. WhoAmI View Current User commands3. PWD View current directoryExample: Input su aming can also switch users, but the directory is not in its own user directory, as follows:[email protected] ~]# su
1 Su and Su-the difference1.1 Command DescriptionSu corresponds to the no-login shell of the way the account login, the command line variable configuration or switch the variables before the account.su-corresponding to the login shell method of the account login, this time equivalent to completely login to the new account to obtain the new account variable informationTherefore, in the process of writing a s
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.