ubuntu root settings

one. root Description: It is to grant superuser privileges. This allows you to make changes to your computer at will. So set root to be careful. If you only need superuser privileges temporarily, you can use sudo to grant them.

 

two. Set root permissions.

Terminal input: sudo passwd root

Then enter: local password.

Then enter: two new passwords, and you're done.

This sets root user permissions.

            login root

Terminal input: $ su

Then enter: the set password. to enter the root.

As shown below:

The figure above shows the steps for setting root privileges.

 

three. Disable root privileges.

     sudo passwd -l root 

This statement disables root privileges.

 

Four. root exit.

 Use the key combination Ctrl+D to log out.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326485667&siteId=291194637