Su and Su-

Source: Internet
Author: User

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. BASHRC would be sourced

The SU root is the same as Su
Like you open a interactive shell in Root name,
Then only BASHRC would be sourced.

Su does not add the user is the default cut to root
Su is not changing the current variable
Su-is changed to switch to the user's variable
That is, SU can only get execution rights for root and not get environment variables
And Su-is to switch to root and get root's environment variables and execute permissions
Grammar:
The SU[USERNAME]SU command can be used to interactively change your user ID and group ID. SU is an abbreviation for Switchuser or Setuserid. This command allows you to open a subprocess, become a new user ID, and grant access to access to all files associated with this user ID. Therefore, for security reasons, when you actually convert your identity, you are

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.