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

What if su authentication fails in Ubuntu

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

Share

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

What if su authentication fails in Ubuntu? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

After Ubuntu is installed, root users are locked by default and are not allowed to log in or su to root. You can log in to root by changing the password of root.

It is not possible for su to switch root, so change the password manually.

Sudo passwd rootpassword for ubuntu18: current user's password Enter new UNIX password: this is the password of root Retype new UNIX password: repeat the password of root

You can then log in to the root user by typing su.

Su: switch to the user mode of so-and-so. When prompted for a password, the password is the password of the account after the switch, and the usage is "su account name". If no account is added, the system defaults to the root account, and the password is also the password of the super account. There is no time limit.

Sudo: temporarily switch to superuser mode to perform superuser privileges. When prompted for a password, the password is the password of the current user, not the password of the superaccount. However, there is a time limit, and Ubuntu defaults to 15 minutes at a time.

After reading the above, have you mastered the solution to the failure of su authentication 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: 251

*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