Home  >  Article  >  Operation and Maintenance  >  How to switch root user in CentOS

How to switch root user in CentOS

angryTom
angryTomOriginal
2020-03-30 14:24:0125837browse

How to switch root user in CentOS

How to switch the root user in CentOS

1. Open the terminal. The prompt is "$", indicating that the user is an ordinary user. At this time , directly enter su, press Enter, enter the root password, press Enter, you can switch to the root user, and the prompt will change to "#".

Note that the terminal is not displayed when entering the password, and this process must be completed every time you switch to the root user.

2. To switch back to a normal user, just enter "su username" and it will be OK. You can also directly enter exit or press ctrl d to exit the current account.

This article comes from the PHP Chinese website, CentOS usage tutorial column, please pay attention to this column for more related tutorials!

The above is the detailed content of How to switch root user in CentOS. 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