On Sunday 16 July 2006 11:14, Aparna Appaiah wrote: *snip*
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.
AFAIK you can't run it as a regular user. You need root privileges to run it. But I'm not 100% sure. It is writing to /proc fs which is only possible by root.