On Sun, Jul 16, 2006 at 10:47:34AM +0530, Aparna Appaiah wrote:
On Sun, Jul 16, 2006 at 08:46:00AM +0530, Siddhesh Poyarekar wrote:
On 7/16/06, Aparna Appaiah aparna.appaiah@gmail.com wrote:
each time? I tried using chmod 4777 on the scripts but they are unable to open the interface etc.
Make sure that root owns both scripts and then do a `chmod 4777` on them.
Thanks. It works now.
Actually, it doesn't! My current situation is this:
[aparna@debian bin] ls -l -rwsr-sr-x 1 root root 74 Jun 12 12:56 netdown.sh -rwsr-sr-x 1 root root 64 Jun 12 12:09 netup.sh
However, running the script gives me this:
[aparna@debian bin] ./netup.sh Error: Unable to write database "/var/lib/vnstat/eth0". Make sure it's write enabled for this user. Database not updated. Setting up IP spoofing protection: /etc/init.d/networking: line 17: /proc/sys/net/ipv4/conf/all/rp_filter: Permission denied /etc/init.d/networking: line 17: /proc/sys/net/ipv4/conf/default/rp_filter: Permission denied /etc/init.d/networking: line 17: /proc/sys/net/ipv4/conf/eth0/rp_filter: Permission denied /etc/init.d/networking: line 17: /proc/sys/net/ipv4/conf/lo/rp_filter: Permission denied rp_filter. Configuring network interfaces...ifup: failed to open statefile /etc/network/run/ifstate: Permission denied done.
Where could the mistake be? I am sure it is not being run as root.
Thanks.
Aparna