LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1310|回复: 4

如何建立一个可以make的用户

[复制链接]
发表于 2009-12-20 11:34:16 | 显示全部楼层 |阅读模式
我在编译openwrt的时候需要non-root用户。

这个用户要有make的权限

请问下在ubunt 8.04 版本中如何建立

root@loong-ice:/home/non-root/trunk# make menuconfig
bash: /home/non-root/trunk/scripts/getver.sh: Permission denied
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'flex'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... failed.

Build dependency: Please do not compile as root.

Prerequisite check failed. Use FORCE=1 to override.
make: *** [tmp/.prereq-build] 错误 1


用non-root也编译不了
发表于 2009-12-20 16:39:31 | 显示全部楼层
non root 的意思不是让你建立一个名字叫 'non-root' 的用户. 是让你用普通用户来编译,就是你平时用的账号. 如果你使用 root 进行了 make , 又没有 make clean , 再使用其它没有 root 权限的帐号编译必然失败(为什么自己想吧).

如果你平时用的帐号就是 root , 那就改 make 文件好了.

对当前目录有权限自然可以 make 除非你用的帐号指定 /bin/false .
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-20 17:30:00 | 显示全部楼层
谢谢  明白了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-20 20:47:38 | 显示全部楼层
但是还是这个问题编译同不过
bash: /home/dbloong/trunk/scripts/getver.sh: Permission denied
回复 支持 反对

使用道具 举报

发表于 2009-12-20 22:56:46 | 显示全部楼层
权限拒绝,检查权限呗。

ls -l /home/dbloong/trunk/scripts/getver.sh

看输出结果……
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表