Home >Operation and Maintenance >CentOS >How to switch from ordinary user to root user in centos7

How to switch from ordinary user to root user in centos7

王林
王林Original
2020-05-20 15:03:127687browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn