su/(su root)命令不能切换root,提示su: Authentication failure;

只要你sudo passwd root过一次之后,下次再su的时候只要输入密码就可以成功登录了;

如下图:

su root : Authentication failure问题的解决-flag

ubuntu系统获取root权限,并且实现xshell root登录

1.首先我么用ubuntu账号登陆
2.然后我们输入sudo passwd root 
3.这是我们需要输入两次密码,建议输入的与ubuntu的密码一致(好记)
4.然后我们输入sudo vi /etc/ssh/sshd_config  回车
找到 PermitRootLogin   without-password 修改为
PermitRootLogin   yes
5.ESC    :wq保存退出   然后sudo service ssh restart  重启
6.关闭xshell,然后用root账户登录就可以了, 现在ftp就可以用root账户登录上传和下载文件了

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-24
  • 2021-11-28
  • 2021-10-02
  • 2022-12-23
  • 2021-06-26
猜你喜欢
  • 2021-12-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-16
相关资源
相似解决方案