su
chmod a+w /etc/sudoers
vim /etc/sudoers
[找到root    ALL=(ALL)       ALL这行]
复制出新的一行,并且将root改为daniel(当前用户名)
chmod 0440 /etc/sudoers
exit

  

相关文章:

  • 2021-08-03
  • 2021-12-16
  • 2022-12-23
  • 2021-04-24
  • 2021-06-14
  • 2021-08-06
  • 2021-12-20
  • 2022-02-08
猜你喜欢
  • 2021-11-01
  • 2021-11-06
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
  • 2021-10-18
相关资源
相似解决方案