How to switch from root to normal user? 0 Basic Linux Operations

Source: Internet
Author: User

[[email protected] ~]# Su-oldboy ===> by Root admin, switch to normal user Oldboy

[[email protected] ~]$ WhoAmI ===> See what the current user is

Oldboy

[[email protected] ~]$ Su-root ===> cut back to root user

Password:

[Email protected] ~]# Su-oldboy

[email protected] ~]$ su

Password:

Description

L superuser root switch to normal user, no need to enter the corresponding user password

L Normal user switch to root or other ordinary user, need to enter the corresponding user password switch

L The normal user's permission is relatively small, can only carry on the basic system Information view and so on operation, cannot change the system configuration and the management service

L The $ symbol is a command-line prompt for an ordinary user, #符号是超级管理员的提示符, with the following example:

[[Email protected] ~]# "#" ===> prompt for Super admin root

[[Email protected] ~]$ "$" ===> regular user Oldboy corresponding prompt

L The character in front of the prompt @ represents the current user (available WhoAmI query), followed by the hostname (available hostname query), where the location is the path where the current user of the window resides. Examples are as follows:

[[email protected] ~]$ ===> Oldboy for current user, OLDBOYEDU44 for hostname, ~ = current directory, home directory

The above is today's share, I hope to have the necessary friends to help.

How to switch from root to normal user? 0 Basic Linux Operations

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.