View previous topic :: View next topic |
Author |
Message |
wisdom Tux's lil' helper
Joined: 26 May 2002 Posts: 101 Location: sweden
|
Posted: Sat Jun 15, 2002 11:54 am Post subject: Permission |
|
|
when i do this
From the security guide
code listing 38: /etc/init.d/procparam
#!/sbin/runscript
depend() {
before *
}
start() {
ebegin "Setting /proc options."
/bin/echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_all
/bin/echo "1" > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
/bin/echo "0" > /proc/sys/net/ipv4/conf/all/accept_source_route
/bin/echo "0" > /proc/sys/net/ipv4/conf/all/accept_redirects
/bin/echo "1" > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
for i in /proc/sys/net/ipv4/conf/*; do
/bin/echo "1" > $i/rp_filter
done
/bin/echo "1" > /proc/sys/net/ipv4/conf/all/log_martians
/bin/echo "0" > /proc/sys/net/ipv4/ip_forward
eend 0
}
And add it to the run level rc-update add procparam default
--------
when i restart it says /sbin/runscript:permisson denied |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sat Jun 15, 2002 3:53 pm Post subject: |
|
|
Try it with /sbin/runscript.sh. |
|
Back to top |
|
|
|