I want to lock myself out of my system for a set period of time
I want to be able to fairly easily lock myself out of my system for a set period of time.
I've been googling a lot, without success, so now I'm turning to you folks for help. Thanks. |
What's the reason for you wanting this, if I may ask?
If you have physical access to the computer it is fairly easy to break into. So I guess the easiest solution would be to lock the computer in a room and have someone else watch the key. :) |
Quote:
I need my computer to be running, but inaccessible to myself. |
The easiest solution that comes to mind, provided you're not the kind to go and crack your own box, is to create a script that will lock your user (passwd -l user) and schedule a job for unlocking it (passwd -u user).
Yves. |
Quote:
To my opinion, the only certain ways to keep you away from computer are following: 1) Give root account to someone else, not you, so this person will create some kind of lockout mechanic to keep you away from computer. This person should have strong intention to keep you away from computer, even you ask to grant you access again. 2) At the time you shouldn't access computer, go to some place without computers (go swimming. visit forest, zoo, join martial/fitness/dancing club, go jogging, walk around the town, or do some workout that'll make you too tired to use your PC.). Again, friend or famimly member might help here. And you can schedule system poweroff with cron at the time you should get up and go. 3) Try to find more interesting and healthly hobby. |
Quote:
Quote:
And I'd like to stress again that I want my system to stay running. ;) |
Sounds to me like by far the best solution to your problem is self control. It's also the easiest to implement.
You will be able to overcome and restriction that you put in place by messing configuration/cronjobs/whatever and by trying to implement such a solution you're just inventing an excuse to use the computer some more. If you're really so lacking in self control that you cannot simply chose not to use the computer at certain times then you need to have someone else control physical access to your computer and possibly seek professional help for your addiction. If it's a problem of not being able to fill your time with other things then go for a walk at least half an hour a day. It's free, easy and it's good exercise. If you find just walking is too boring, and why wouldn't you, get some sort of mp3 player and find some good podcasts to listen to whilst you walk. Now stop messing around using your computer to try to work out how to stop yourself using your computer and go do something else! Just sayin'... ;) |
Quote:
|
If you're in control of locking yourself out, then you have the control to unlock yourself. What your asking isn't really going to stop you if you really want to get on the computer. I'd agree with arizonagroovejet, learn some self-control. If you can't help yourself, find someone who can help you. Get a new hobby, girlfriend/boyfriend, whatever! ;)
|
Quote:
Or you can wait a day and disable protection at the time you actully can use computer. To my opinion, trying to lock yourself out of computer where you are root(and have physical access to machine) is hopeless, because there will be always a way to disable that lockout, and in the end you'll be spending more time with computer trying to find that way. Really, try non-computer solutions I've listed before. Quote:
|
Quote:
|
Pull the power cord, throw it in the trunk of your car, and park your car two blocks away. The effort of having to retrieve the cord will discourage you from using your computer for trivial purposes during "lockdown" periods.
|
Quote:
|
Quote:
Another possible solution is to find an extremely boring job where you'll have to use computers a lot solely for the purpose of work. In this case there'll be chance that after a month you'll hate computers and everything associated with them. |
Hehe. Lots of amusing replies... But I think I've found a good enough solution. I'll use 'passwd -l' and '-u' with slock, and ssh in from my eee 900 when it's time to unlock (root access via sshd is off). As I've said before, rebooting is not an option, and neither is shutting down, as I have things running. And using the eee for the same purposes as my main computer is not satisfying enough to replace it. :) I hope I've made sense ...
|
All times are GMT -5. The time now is 03:56 PM. |