iptables编译遇到/bin/sh: extensions错误解决方法
看到标题我想大家都知道什么问题,一个大系统如果不熟悉的情况下,看到这个问题,估计肯定是要头疼一段时间的。如果你像我这样纠结,echo定位出来的话,肯定费时费力。因此这里做一个简单的记录,希望看到这个记录的朋友能知道什么原因,轻松搞定问题。
问题就是系统编译出现如下错误,实际问题就是iptables的extension目录下的.xxxtest没有可执行权限,并非root什么的问题,千万别被别人忽悠了。
因此只要进入iptables主目录下的extension目录,修改所有.xxxtest的可执行权限即可。具体命令如下:
# cd iptables/extension
# chmod +x .*
/bin/sh: extensions/.account-test: Permission denied
/bin/sh: extensions/.BALANCE-test: Permission denied
/bin/sh: extensions/.childlevel-test: Permission denied
/bin/sh: extensions/.CLUSTERIP-test: Permission denied
/bin/sh: extensions/.condition-test: Permission denied
/bin/sh: extensions/.connbytes-test: Permission denied
/bin/sh: extensions/.connrate-test: Permission denied
/bin/sh: extensions/.dccp-test: Permission denied
/bin/sh: extensions/.dstlimit-test: Permission denied
/bin/sh: extensions/.FTOS-test: Permission denied
/bin/sh: extensions/.fuzzy-test: Permission denied
/bin/sh: extensions/.IMQ-test: Permission denied
/bin/sh: extensions/.IPMARK-test: Permission denied
/bin/sh: extensions/.iprange-test: Permission denied
/bin/sh: extensions/.ipv4options-test: Permission denied
/bin/sh: extensions/.IPV4OPTSSTRIP-test: Permission denied
/bin/sh: extensions/.layer7-test: Permission denied
/bin/sh: extensions/.mport-test: Permission denied
/bin/sh: extensions/.NETLINK-test: Permission denied
/bin/sh: extensions/.nth-test: Permission denied
/bin/sh: extensions/.osf-test: Permission denied
/bin/sh: extensions/.psd-test: Permission denied
/bin/sh: extensions/.quota-test: Permission denied
/bin/sh: extensions/.random-test: Permission denied
/bin/sh: extensions/.recent-test: Permission denied
/bin/sh: extensions/.record-rpc-test: Permission denied
/bin/sh: extensions/.ROUTE-test: Permission denied
/bin/sh: extensions/.set-test: Permission denied
/bin/sh: extensions/.string-test: Permission denied
/bin/sh: extensions/.TCPLAG-test: Permission denied
/bin/sh: extensions/.time-test: Permission denied
/bin/sh: extensions/.u32-test: Permission denied
/bin/sh: extensions/.XOR-test: Permission denied
/bin/sh: extensions/.ah-test6: Permission denied
/bin/sh: extensions/.condition-test6: Permission denied
/bin/sh: extensions/.esp-test6: Permission denied
/bin/sh: extensions/.frag-test6: Permission denied
/bin/sh: extensions/.fuzzy-test6: Permission denied
/bin/sh: extensions/.IMQ-test6: Permission denied
/bin/sh: extensions/.ipv6header-test6: Permission denied
/bin/sh: extensions/.nth-test6: Permission denied
/bin/sh: extensions/.opts-test6: Permission denied
/bin/sh: extensions/.random-test6: Permission denied
/bin/sh: extensions/.REJECT-test6: Permission denied
/bin/sh: extensions/.ROUTE-test6: Permission denied
/bin/sh: extensions/.rt-test6: Permission denied