Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to quickly switch root users by Kali Linux

Shulou Source: shulou.com Published: 2022-06-01 03:40:50 10月03日 Update

This article is about Kali Linux how to quickly switch root users, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.

Kali Linux Fast switching of root users

Starting with Kali Linux 2019.4, the default installation process creates a normal user. University bully IT talent and, during the installation process, did not set a password for root users, and do not know their password. Therefore, after the system is successfully installed, you can only log in with the newly created ordinary user. However, some operations, such as the ifconfig command, require root permission to perform. At this point, users can quickly switch from ordinary users to root users by using the sudo command. Execute the command as follows:

C:\ home\ daxueba > sudo su-# ordinary user

C:\ root > # root user

You can see from the command prompt that you successfully switched from C:\ home\ daxueba > to C:\ root >. This shows that it was successfully switched to a root user. If you need to exit the root user, execute the exit command. Note that the environment used in the above example is Undercover mode. Therefore, the command line prompt environment looks similar to Windows. If it is the default XFCE desktop, the normal user command line prompt is displayed as $and the root user command line prompt is displayed as #. As follows:

Daxueba@kali:~$ sudo su-# ordinary user

[sudo] password of daxueba:

Root@kali:~# # root user

This is how Kali Linux can quickly switch between root users. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: User command switch normal prompt prompt success password more environment knowledge article process utility example university that is work meeting article permission Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Linux Apple Huawei MariaDB