Home >Operation and Maintenance >CentOS >How to switch from ordinary user to root user in centos7
The specific method is as follows:
You are currently logged in as an ordinary user. If you want to switch to the root user, you need to enter the command
su
and then enter the root password. After pressing Enter, you will enter the root user.
If we want to switch from the root user to an ordinary user, we only need to enter the command
su 用户名
to switch to an ordinary user.
Recommended tutorial: centos tutorial
The above is the detailed content of How to switch from ordinary user to root user in centos7. For more information, please follow other related articles on the PHP Chinese website!