is not in the sudoers file"

"[用户名] is not in the sudoers file"(已解决)
  • 发布时间:2018-01-19 来源:网络 上传者:用户

    关键字: 用户名 sudoers 解决 file

    发表文章
  • 摘要:解决方法: 1.切换到root用户su-12.添加文件读写权限chmodu+w/etc/sudoers13.打开文件vim/etc/sudoers1注:如果没有vim,请通过apt-getinstallvim安装。4.找到rootALL=(ALL)ALL并在此行下方添加:[用户名]ALL=(ALL)ALL15.删除文件读写命令chmodu-w/etc/sudoers
  • 解决方法: 
    1.切换到root用户

    su -
    • 1

    2.添加文件读写权限

    chmod u+w /etc/sudoers
    • 1

    3.打开文件

    vim /etc/sudoers
    • 1

    注:如果没有vim,请通过apt-get install vim安装。

    4.找到root ALL=(ALL) ALL并在此行下方添加:

    [用户名] ALL=(ALL) ALL
    • 1

    5.删除文件读写命令

    chmod u-w /etc/sudoers
以上是"[用户名] is not in the sudoers file"(已解决)的内容,更多 用户名 sudoers 解决 file 的内容,请您使用右上方搜索功能获取相关信息。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值