您的位置:首页 > 运维架构

OPENWRT make menuconfig错误之一

2015-09-25 11:47 519 查看
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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: