Please help me create a batch file that I want have it configured every time any user logs in to my personal computer (there are couple of non-admin non-root users) Another concern is that this should run invisible, i.e. no prompts, etc.
I want to have this command run invisibly at every user login to my PC : sudo iptables -A OUTPUT -p tcp -m owner --uid-owner anotheruser -j DROP
Basically, this command stops internet access for this user 'anotheruser'. And I want to have this command run every time this (or any other user) logs in to my PC.