Linux下is not in the sudoers file解决方法

 时间:2024-10-11 23:25:59

1、切换到root用户,运行visudo命令

Linux下is not in the sudoers file解决方法

2、在打开的配置文件中,找到root ALL=(ALL) ALL,在下面添加一行xxx ALL=(ALL) ALL 其中xxx是你要加入的用户名称

Linux下is not in the sudoers file解决方法

3、输入:wq保存并退出配置文件,再次使用sudo命令就不会有上面的提示了。

  • linux返回上一级目录的命令
  • Notepad++怎么设置菜单按钮样式
  • Android studio如何更改gradle版本?
  • 怎样进行下载和安装typora
  • idea如何打war包
  • 热门搜索
    ip地址怎么改 粉蒸肉怎么做 三宝为什么娶万千惠 结婚证丢失怎么补办 电脑屏幕倒过来了怎么办 干发帽怎么戴 馄饨汤怎么调 爱心怎么画 舂怎么读 8大写怎么写