linux su切换用户提示 Authentication failure的解决方法

写项目的时候,在Linux上操作时候,出现    认证失败  这个提示: su  切换root不行所以就用手动形式进行改密码切换

sudo passwd 

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

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

From: https://blog.csdn.net/will5451/article/details/51813542

感觉Linux在很多方面都没有做得比Windows,Mac更人性化。。。

Linux的缺点就是Windows,Mac的优势!!

猜你喜欢

转载自blog.csdn.net/tony2278/article/details/82080391