MonDie Posted December 25, 2012 Posted December 25, 2012 I already have self-control on my Ubuntu operating system, but that has a 24 hour cap on its timer. I need a program that can block out a single website for months or even permanently. I don't want myself to be able to glance at it even once in the next several months. And no, it's not porn...
Cap'n Refsmmat Posted December 25, 2012 Posted December 25, 2012 You can send it to 127.0.0.1 in your hosts file: http://en.wikipedia.org/wiki/Hosts_(file) 1
StringJunky Posted December 25, 2012 Posted December 25, 2012 (edited) To clarify on CR's post, scroll down to Ubuntu: http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/ 0.0.0.0 www.websiteurl in Hosts will work as well to block it....you will get a ' ...not available' notice when you try to get it. Edited December 25, 2012 by StringJunky 1
MonDie Posted December 26, 2012 Author Posted December 26, 2012 (edited) Thanks. The HowToGeek article gave a null command line. I just edited the hosts file with gedit. sudo gedit /etc/hosts And no, it's not porn... My voice recognition software is trying to make me politically correct. I actually said, "Oh, it's snot porn." Edited December 26, 2012 by Mondays Assignment: Die
MonDie Posted December 31, 2012 Author Posted December 31, 2012 (edited) I've decided to take this route. sudo adduser <other user> // creates new user; enter whatever username you like, for example: sudo adduser monkeybutt sudo adduser <other user> admin // adds the user to group 'admin' so it can edit the hosts file sudo deluser <main user> admin // removes the user from group 'admin'. Caution: If you forget 'admin,' it deletes the user. I will have siblings set the password for <other user> so I cannot edit the hosts file. Also, I had to remove <main user> from both the 'sudo' and 'admin' groups to remove its ability to edit the hosts file. I added <other user> to both of these groups.There's a problem. When I try to change my wireless network without root privelages, I get the message "System policy prevents modification of network settings for all users."In an unsuccessful attempt to fix the problem, I followed these AskUbuntu directions. http://askubuntu.com/questions/141553/how-to-enable-wireless-network-for-standard-users?lq=1 http://askubuntu.com/questions/66718/how-to-manage-users-and-groups For anyone else trying to do this, I have clarified the directions given in the AskUbuntu links.To enable "Connect to wireless and ethernet networks," open Users and Groups from Dash Home. Next, go to <main user>, then Advanced Settings, then User Privelages. (I enabled a bunch of the privelages for my main user, but not the administration privelage.)To make the wireless network "available to all users," open Network from Dash Home. Next, go to Wireless, then options. Edited December 31, 2012 by Mondays Assignment: Die
Moontanman Posted December 31, 2012 Posted December 31, 2012 And no, it's not porn... Damn that's disappointing....
MonDie Posted January 11, 2013 Author Posted January 11, 2013 Damn that's disappointing.... I know... I think I found the reason for my problem with making Network Manager accessible without root privelages. uteck on ubuntuforums.org said: Nope, it seems that for some stupid reason the network manager folks have decided that you have to have sudo rights to connect to a wireless access point. They want to store all wifi settings in /etc/NetworkManager/system-connections/ and share them by default with all users on the system. I am looking into Wicd as a replacement for NM. Or I need to set sudo for network-manager so anyone can run it. Not that safe, but better then putting everyone in the sudo group like the NM devs recommend. http://ubuntuforums.org/showthread.php?t=1943809&highlight=System+policy+prevents+modification+of+network+settings+for+all+users Network Manager still accesses my own wireless network automatically, but I can't change networks, and I can't reconnect to the usual network after getting off of it. I guess I'll just have to see what it does when I'm away from home.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now