Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to switch to superuser in Ubuntu

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

How to switch to a super user in Ubuntu? I believe many inexperienced people don't know what to do about it. Therefore, this article summarizes the causes and solutions of the problem. I hope you can solve this problem through this article.

Because Ubuntu is a Debian-based linux operating system, there is no superuser (superuser, root) by default, but some system operations must have superuser privileges, such as freeing memory manually.

Under other linux operating systems, such as fedora, you can use su to switch to superuser.

When you enter the su command, you will be asked to enter the password for root.

However, under Ubuntu, we have no idea what the password of root is.

In this way, you need to use other methods to switch to superuser under Ubuntu, there are two main ways:

1) sudo-I

Sudo is an enhanced version of su, which means do something as the supervisor.

You don't need a password to get access to root.

But it also has many restrictions, such as, by default, you can only use root permissions within 5 minutes.

2) if you want to use root permission all the time, you still want to use su, and you still need to get the root password.

You can set the password for root with sudo passwd root.

After reading the above, have you mastered how to switch to superuser in Ubuntu? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report