zoukankan      html  css  js  c++  java
  • OPENWRT make menuconfig错误之一

    1、make menuconfig rm: cannot remove `tmp/.host.mk': Permission denied

     

    退到trunk上级目录sudo chown -R 777 trunk

     

    2、hbg 不在 sudoers 文件中。此事将被报告。     

     

    sudo命令可以让你以root身份执行命令,来完成一些我们这个帐号完成不了的任务。

    其实并非所有用户都能够执行sudo,因为有权限的用户都在/etc/sudoers中呢。

      

    我们可以通过编辑器来打开/etc/sudoers,或者直接使用命令visudo来搞定这件事情。

    打开sudoers后,像如下那样加上自己的帐号保存后就可以了。

     

    root    ALL=(ALL:ALL) ALL 

    hbg  ALL-(ALL:ALL) ALL

    # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL

    # See sudoers(5) for more information on "#include" directives:

    #includedir /etc/sudoers.d 

     

  • 相关阅读:
    推导式
    解构
    for 循环
    运算符
    while 循环
    流程控制语句
    索引和切片
    ASC转换BCD,ASC2BCD(转)
    CString和char互转,十六进制的BYTE转CString
    C++添加简单的日记记录
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/4837743.html
Copyright © 2011-2022 走看看