Home > System Tutorial > LINUX > How to switch as root user in Deepin Linux? How to switch to root privileges in Deepin Linux

How to switch as root user in Deepin Linux? How to switch to root privileges in Deepin Linux

WBOY
Release: 2023-12-27 14:23:51
forward
1803 people have browsed it

How to switch to the root user in Deepin system? Let’s take a look at the detailed graphic tutorial below.

First press "ctrl lat t" to open the terminal, and then set a password for the root user

deepin linux怎么切换到root权限? Deepin切换root用户的技巧

Execute the su commandEnter the password of the root user and switch to the root user

deepin linux怎么切换到root权限? Deepin切换root用户的技巧

When using administrator privileges to perform simple operations, Use sudo commands more

deepin linux怎么切换到root权限? Deepin切换root用户的技巧

When you encounter a simple prompt that the command cannot be found, use the sudo command to elevate the permissions

deepin linux怎么切换到root权限? Deepin切换root用户的技巧

You can also switch to the root user and execute again

deepin linux怎么切换到root权限? Deepin切换root用户的技巧

If you create a new user and need to use root privileges, you can execute the following command

sudo visudo

Modify the sudo configuration file and add a new user as shown in the figure below. For example, the newly added user is admin

admin ALL=(ALL) ALL

In this way, the admin user can switch to root privileges through the sudo command.

deepin linux怎么切换到root权限? Deepin切换root用户的技巧

The above is the detailed content of How to switch as root user in Deepin Linux? How to switch to root privileges in Deepin Linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:jb51.net
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