LinuxSir.cn,穿越时空的Linuxsir!

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

关于SHELL的问题

[复制链接]
发表于 2008-6-5 11:17:18 | 显示全部楼层 |阅读模式
用root登陆之后,在apache里面执行cgi的时候出现下面错误:
#############################################################################################



The only thing I found, was that sometimes I got the below error under the root user. We should ask the site if they have set any shell restrictions or operate test in a zone or virtual environment.



sh: cd: 0403-019 The operation is not allowed in a restricted shell.



Eg.



# cd ..

sh: cd: 0403-019 The operation is not allowed in a restricted shell.

# pwd

/usr/local/apache2/cgi-bin

#

# cd /usr/local/apache2

sh: cd: 0403-019 The operation is not allowed in a restricted shell.

# echo $SHELL

/usr/bin/ksh

请高手们帮忙看看我该如何修改shell?
发表于 2008-6-7 10:39:47 | 显示全部楼层
环境变量全丢了吗
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-16 14:47:38 | 显示全部楼层
应该不会吧,如果丢了,是不是把根目录下的配置文件修改下就可以了吧!
回复 支持 反对

使用道具 举报

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

本版积分规则

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