su: authentication failure 解决方法

在Linux上切换root时,密码正确。。但提示:su: authentication failure 

->sudo passwd 

->Password:你当前的密码 

->Enter new UNIX password:这个是root的密码 
->Retype new UNIX password:重复root的密码 
然后会提示成功的信息。 

使用su和sudo是有区别的,使用su切换用户需要输入所切换到的用户的密码,而使用sudo则是当前用户的密码。

猜你喜欢

转载自www.cnblogs.com/caijunchao/p/10765793.html