[[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