Su-root:
Just like Login as root, then the shell is LoginShell,Which mean it will expericene a login process,Usually. Bash_profile and. bashrc will be sourced
Su RootLike you openInteractive Shell in root name,Then only. bashrc will be sourced.
Difference between Su and sudo:1. Commonalities: root user permissions; 2. Differences:
Su and sudo, su root and Su-root differencesSu is the front two letters of the superuser.Su Root=suLike your open an interactive shell in Root name,Then only. BASHRC'll be sourced.Su Root and Su: to establish a link with root, execute the command through root, is actually the process's valid user ID into the Root,unix
Old boy Linux training new class just beginning, the old boy found in the group is discussing this Su and Su-difference, some students say, direct Su can, some say must Su-. Some students ask directly, in the end Su and Su-what is
Switch from normal user to root user:You can use Su or Su-:The most essential difference between the SU command and the Su-command is that the former simply switches the root identity, but the shell environment is still the shell of the normal user, and the user and the shell environment are switched to root. The PATH
A problem occurred while starting the server NTPD serviceYou cannot use the service command after switching to the root user using SU root;After using Su-, you can use the service command.Reason:The difference between the SU command and the Su-command is:Su simply switches the root identity, but the shell environment i
Difference between su and su-commands I used to use root directly and seldom use su. only a few days ago I found that su and su-commands are essentially different! Most of the default accounts of www.2cto.com Linux distributions are normal users. to change system files or ex
The most essential difference between the SU command and the Su-command is that Su simply switches the root identity. But the shell environment is still a normal user's shell. And Su-even the user and shell environment to switch to root identity. The PATH environment variable error does not occur only if you switch the
Today on the server through SU Hadoop switch users, using JPS can not see the start of the Spark program, cannot find the JPS command, the original is SU does not change the current environment variables.Su-root is the same as Su-
Just like login as root and then the shell is login shell,Which mean it'll expericene a login process,usually. Bash_profile and. BASH
The most essential difference between the SU command and the Su-command is that Su simply switches the root identity, but the shell environment is still a normal user's shell, and Su-even the user and shell environment switch to root identity. The PATH environment variable error does not occur unless you switch the she
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: su-root or direct
A few days ago, in a project, made a very low-level mistake, but did not understand what is the problem. This is the case, we are doing disaster preparedness, restart systematization, with root user rights, through Su Oracle, go in, Oracle's RAC does not start normally, I did not look closely, has been looking for other reasons, finally after colleagues reminded that should be executed su-oracle. Sure enoug
1, Su Command function: The role of SU is to change the identity of other users, except for superuser, you need to type the user's password. How to use: 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,
I have been accustomed to direct use of root, rarely use Su, only a few days ago found Su and Su-command is an essential difference!The default accounts for most Linux distributions are normal users, and changing the system files or executing certain commands requires root, which requires switching from the current user to the root user. The commands for switchin
Original URL: http://www.ha97.com/4001.htmlI have been accustomed to direct use of root, rarely use Su, only a few days ago found Su and Su-command is an essential difference!The default accounts for most Linux distributions are normal users, and changing the system files or executing certain commands requires root, which requires switching from the current user
Parsing the difference between Su,su-,sudo warm ColorSomeone must not know the difference between the following two commands,
1
[[emailprotected] ~]$ su
1
[[emailprotected] ~]$su- ##(有个减号)
What is the difference between the two commands below?
The difference between Su and Su-
The former only switches identities, but the shell environment is still the original user's shell, while the user and the shell environment switch to the new user. The PATH environment variable error will not occur until you switch the shell environment.
Specific cases:
Someone logged in with Root. Then switch to the Oracle user and execute the sqlplus command with an e
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 command and Su- Command the most essential diff
Open a Command WindowInput command: sudo passwd rootThen follow the steps in.The differences between the Su and SU commands:The most essential difference between the SU command and the Su-command is that the former simply switches the root identity, but the shell environment is still the shell of the normal user, and t
The su command is used to switch to another user identity.
If "user" is ignored when su is used to switch identities, the system switches to the "root" identity by default and requires a password. When switching from the root user to another user, you do not need to enter the password. Otherwise, you need to enter the password of the corresponding user.
If the-or-l or -- login parameter is added to a new
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 environment variables (such as home, shell, user, etc.) are based on the user, andand
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.