I'm looking for something like LeechBlock, or StayFocusd on steroids, i.e. something that could block my Internet access temporarily, but do it in a way that would be a major hassle to disable, unlike these browser plug-ins (A "major hassle" is something like re-installing the OS)
If I create a "restricted" account, block its Internet access and exclude it from sudoers
, it would work for me, but only if I could somehow lock myself out of my primary account on the machine, temporarily.
Can this be done in Ubuntu? (I'm sticking with 11.04
, but I would consider upgrading or paying for this feature)
Simply letting someone else be the admin of my machine is not an acceptable solution for me.
Something like a cron
job temporarily resetting the password might do the job, but it would have to be something very reliable, obviously. I can't risk being permanently locked out, because the machine had to reboot, etc.
I also asked a more general version of this question, in productivity.SE.