主题 : 我使用ROOT账号登陆系统,对文件进行编译,但是系统依然提示我权限不够,请高手解决,谢谢。 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 73789
精华: 0
发帖: 1
金钱: 5 两
威望: 1 点
贡献值: 0 点
综合积分: 2 分
注册时间: 2012-07-14
最后登录: 2012-08-15
楼主  发表于: 2012-08-13 15:19

 我使用ROOT账号登陆系统,对文件进行编译,但是系统依然提示我权限不够,请高手解决,谢谢。

我使用ROOT账号登陆系统,对文件进行编译,但是系统依然提示我权限不够,请高手解决,谢谢。

root@yuanzhiqian-G31M-ES2C:~# export PATH=/opt/Mozart_Toolchain/arm-eabi-uclibc/usr/bin:$PATH
root@yuanzhiqian-G31M-ES2C:~# arm-linux-gcc -v
Using built-in specs.
Target: arm-unknown-linux-uclibcgnueabi
Configured with: /opt/buildroot-2010.11/output/toolchain/gcc-4.3.5/configure --prefix=/opt/Mozart_Toolchain/arm-eabi-uclibc/usr --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-unknown-linux-uclibcgnueabi --enable-languages=c,c++ --with-sysroot=/opt/Mozart_Toolchain/arm-eabi-uclibc --with-build-time-tools=/opt/Mozart_Toolchain/arm-eabi-uclibc/usr/arm-unknown-linux-uclibcgnueabi/bin --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-libssp --disable-multilib --disable-tls --enable-shared --with-gmp=/opt/buildroot-2010.11/output/toolchain/gmp --with-mpfr=/opt/buildroot-2010.11/output/toolchain/mpfr --disable-nls --enable-threads --disable-decimal-float --with-float=soft --with-abi=aapcs-linux --with-arch=armv5te --with-tune=arm926ej-s --with-pkgversion='Buildroot 2010.11' --with-bugurl=http://bugs.buildroot.net/
Thread model: posix
gcc version 4.3.5 (Buildroot 2010.11)
root@yuanzhiqian-G31M-ES2C:~# cd /home
root@yuanzhiqian-G31M-ES2C:/home# ls
yuanzhiqian
root@yuanzhiqian-G31M-ES2C:/home# cd /root
root@yuanzhiqian-G31M-ES2C:~# ls
mozart3_boot_1.23  公共  模板  视频  图片  文档  下载  音乐  桌面
root@yuanzhiqian-G31M-ES2C:~# cd mozart3_boot_1.23/U-Boot
root@yuanzhiqian-G31M-ES2C:~/mozart3_boot_1.23/U-Boot# make distclean
root@yuanzhiqian-G31M-ES2C:~/mozart3_boot_1.23/U-Boot# make mozart_evm_config
/bin/bash: 行 1: /root/mozart3_boot_1.23/U-Boot/mkconfig: 权限不够
make: *** [mozart_evm_config] 错误 126
root@yuanzhiqian-G31M-ES2C:~/mozart3_boot_1.23/U-Boot# sudo make mozart_evm_config
/bin/bash: 行 1: /root/mozart3_boot_1.23/U-Boot/mkconfig: 权限不够
make: *** [mozart_evm_config] 错误 126
root@yuanzhiqian-G31M-ES2C:~/mozart3_boot_1.23/U-Boot#

*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2012-08-13 16:51
/bin/bash: 行 1: /root/mozart3_boot_1.23/U-Boot/mkconfig: 权限不够

这个东西和你用哪个帐号没有关系,多半是因为文件属性的问题。用chmod 0755给它加上可执行属性试试。
另外,为了你的系统安全,强烈不建议你用root登录编译。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."