Jump to content

Recommended Posts

Posted

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...

 

smile.png

Posted (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 by Mondays Assignment: Die
Posted (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 by Mondays Assignment: Die
  • 2 weeks later...
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.