How to switch root user in CentOS

angryTom
Release: 2020-03-30 14:24:01
Original
25477 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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 [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!