How to enable root permissions in Linux system

(*-*)浩
Release: 2019-11-06 15:19:18
Original
7832 people have browsed it

When the Linux system needs to cd to the root directory in the console, if the root password has not been set, it will not be able to enter and it will prompt that the permissions are insufficient. The following is a detailed graphic introduction on how to enable root permissions.

How to enable root permissions in Linux system

Open the Linux system console, when prompted for insufficient permissions, enter: sudo passwd root, and press Enter.

As shown below.                                                                                                                                                                                                                         (Recommended learning: linux operation and maintenance )

How to enable root permissions in Linux system

## prompts you to enter a password, which is required at this time The password is the Linux system login password. There is no prompt when entering it. Just press Enter after entering it.

How to enable root permissions in Linux system

Please enter a new UNIX password. Now enter the root password you want to set. The screen will not display the input number. , press Enter after typing.

How to enable root permissions in Linux system

Please re-enter the new UNIX password, enter the root password again, and press Enter.

How to enable root permissions in Linux system

If passwd: Password update is successful, it means that the root password is set successfully.

How to enable root permissions in Linux system

Now we verify whether the root password has been set successfully, enter: su, press Enter, when the account number appears, add the current When the path is #, it means that it has entered the root control state (you can observe that the account names in the picture below and the picture above are different), and the ordinary account status is XX:~$.

How to enable root permissions in Linux system

The above is the detailed content of How to enable root permissions in Linux system. 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 admin@php.cn
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!