LinuxSir.cn,穿越时空的Linuxsir!

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

关于apache的问题

[复制链接]
发表于 2008-6-5 11:54:15 | 显示全部楼层 |阅读模式
用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

请高手们帮忙看看我该如何解决
发表于 2008-6-12 20:49:46 | 显示全部楼层
别人的回答:
cat /etc/passwd
看一下内容

不懂啥是 restricted shell。
你用的是什么Linux?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-16 14:45:55 | 显示全部楼层
用的是aix,但是基本上都差不多,意思是受限制的shell
回复 支持 反对

使用道具 举报

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

本版积分规则

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