当前位置:   article > 正文

【日常记录】user is not in the sudoers file

user is not in the sudoers file

问题
当前用户无sudo权限

解决方法
将当前用户增加到sudoers file

  1. 获得root权限
su -
  • 1
  1. 增加用户
visudo
  • 1
#增加如下行
<username> ALL=(ALL) ALL 
#文件里原本有的root的记录 root ALL=(ALL) ALL 
  • 1
  • 2
  • 3
#保存退出
  • 1
本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/834644
推荐阅读
相关标签
  

闽ICP备14008679号