You are not logged in.
Is there a way of making a file really difficult to edit, even for root? I wanna stop myself accessing certain sites, like bittorrent trackers etc, and I edit /etc/hosts to redirect these sites to localhost, but I keep just editing this file and commenting out ones when I desperately wanna go look for something (lack of willpower or what *sniff*).
Any ideas?
.oO Komodo Dave Oo.
Offline
Setup a script+cronjob that'll overwrite the file with a default every second? I don't think you can set permissions so that root can't write to it and then if you could, that wouldn't be smart because you could never edit it if you needed to.
Offline
Have someone else block it on your router and not give you the root password.
Offline
1) Setup SELinux or similar mandatory access controls
2) Lose your root password
3) Seek counseling, and learn to say "no" to yourself
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
2) Lose your root password
I do that on purpose and just 'sudo su'...
I'd vote for blocking on the router
Offline
Blocking on the router would be a great plan, but I don't have one, sadly...
Maybe if I get the banned sites' IPs, and put those into /etc/hosts, then randomize their ordering... then it'd be a real arse for me to find the correct one to unblock. I could add some random IPs in there too, to bulk it up (and hope that none of the random IPs corresponds to slashdot or gizmodo )
.oO Komodo Dave Oo.
Offline
do you know iptables? if not you could have someone block it there for you. then you'd have to go learn iptables to unblock it, and that's enough to deter most anyone.
Offline
do you know iptables? if not you could have someone block it there for you. then you'd have to go learn iptables to unblock it, and that's enough to deter most anyone.
No I don't slackhack... that's a pretty cool idea. I could get them to write a script that would let me add a site, but not remove it.
Volunteers?
Only kidding
.oO Komodo Dave Oo.
Offline
You could just cancel your internet service... problem solved
** we need a smart ass comment smiley **
Offline
rofl, now THERE'S an idea.
That means this is my last thread ever.
/me has left the building.
.oO Komodo Dave Oo.
Offline
Just watch the porn Komodo.
:twisted:
Sorry. I had to say it. I say do the router thing. It's a hassle to change things like that, and maybe thit will be enough to stop you.
Offline
Just watch the porn Komodo.
Hehe, well, fortunately that's not a problem... I'm on a monitored network, but there's only so much string searching URLs can reveal
I say do the router thing
Tut tut tut - I quote:
Blocking on the router would be a great plan, but I don't have one, sadly...
*shakes head* I don't know... lack of attention OR WHAT
.oO Komodo Dave Oo.
Offline
If its not porn, and its forum addiction, ask the admins to disable or block your account.
Worked a treat for me
No matter what you can do, you can undo it somehow, and you arent going to do anything you cannot undo somehow, so theres no solution you can do for yourself.
Offline
No matter what you can do, you can undo it somehow, and you arent going to do anything you cannot undo somehow, so theres no solution you can do for yourself.
Damn your infallible logic iphitus
No seriously, I like that iptables idea; I might get someone to do that. Or I could write a script myself to add an IP, but not write a script to remove one.
.oO Komodo Dave Oo.
Offline