In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to set root permission login in ubuntu, I believe many inexperienced people are helpless about this, for this reason this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.
1. First set the root password, log in to Ubuntu using the existing administrator account, execute the command sudo passwd root on the terminal, then enter the password and root password, and repeat the password. This will give you root users.
2. By default, it is not allowed to log in to the GUI directly with the root account. This can be done by modifying the vi /etc/lightdm/lightdm.conf file to allow root to log in directly
Add greeter-show-manual-login=true allow-guest=false . The entire modified configuration file is
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true #Manually enter the login username and password
allow-guest=false #guest logins are not allowed
Restart ubuntu, login window will have "login" option, then we can log in through root.
If the above method still cannot be solved, then follow the following method:
Modify the/etc/pam.d/login file:
The code is as follows:
gedit /etc/pam.d/login
find
The code is as follows:
auth [success=ok new_authtok_reqd=ok ignore=ignore user_unknown=bad default=die] pam_securetty.so
Modify to read as follows:
The code is as follows:
auth requisite pam_securetty.so
After doing the above, restart the computer. At this point, the root user can log in to the computer.
After reading the above, do you know how to set root login in ubuntu? If you still want to learn more skills or want to know more related content, welcome to pay attention to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.