ok i want to make it so that one specific user on my computer doesn't have access to the Internet. so i thought that i could make two bash scripts , one that disables eth0 and eth1 when they login, and another one that enables eth0 and eth1 when they logout.
i made two bash scripts that look like this:
Code: Select all
#!/bin/bash
sudo ifconfig eth1 down
sudo ifconfig eth0 down
exit 0
and
Code: Select all
#!/bin/bash
sudo ifconfig eth0 up
sudo ifconfig eth1 up
exit 0
i want to know where to put those so that the 1st one runs when they login and the 2nd one runs when they logout.
Maybe I'm going about this all wrong, if there is some better way i would like to know.
i'm using linux mint 9 gnome