日期:2014-05-16  浏览次数:20796 次

linux 中 root 用户的权限问题 期待您帮忙解决 谢谢
我想在linux 下安装JDK,当我用root用户在终端输入 /etc/profile查看配置时提示权限不足的问题.  在linux中root的权限不是最高的吗?  为什么还会提示权限不足? 请问怎么才能解决呢?
Linux root

------解决方案--------------------
楼主的写法会运行/etc/profile里的某些内容,可能某些内容不能在一个登录的Shell里运行,这个要看/etc/profile的具体内容。或者楼主可以sh -x /etc/profile试试看。

查看配置内容,用cat less more就好了。
less /etc/profile
------解决方案--------------------
# 查看
cat /etc/profile

# source
source /etc/profile