linux su authentication failed

angryTom
Release: 2019-11-08 10:22:47
Original
9133 people have browsed it

linux su authentication failed

linux su authentication failed

After Ubuntu is installed, the root user is locked by default and is not allowed to log in. , su to root is not allowed, you can log in to root by changing root's password.

su Switching to root does not work, so I use manual method to change the password.

sudo passwd root
password for ubuntu18:当前用户的密码
Enter new UNIX password:这个是root的密码 
Retype new UNIX password:重复root的密码
Copy after login

After that, you can enter su to log in to the root user.

su: Switch to a certain user mode, and when prompted to enter a password, the password is the password of the account after switching, and the usage is "su account name". If no account is added later, the system defaults to the root account, and the password is also the password of the super account. no time limit.

sudo: Temporarily switch to super user mode to perform super user privileges. When prompted for a password, the password is the password of the current user, not the password of the super account. However, there is a time limit. Ubuntu defaults to a 15-minute session.

Recommended: linux system tutorial

The above is the detailed content of linux su authentication failed. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!