Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

So currently when my non-admin user tries to connect to a new WiFi network (e.g. at a cafe say) NetworkManager prompts for the admin user's password. Is there a way to turn this off and to allow the non-admin user to connect to whatever Wifi network they like?

EDIT: just to clarify, I really mean a new WiFi network never connected to prior by the computer, so clicking 'Available to all users' on an existing established connection will not solve the matter- as currently no issue with the non-admin user reconnecting as many times as they like to the home network.

share|improve this question
    
/etc/sudoers is the file to edit so it does not ask for passwords: help.ubuntu.com/community/Sudoers –  Rinzwind Jan 18 '13 at 9:30
    
I've used visudo before to allow the non-admin user to do a few things (like sudo apt-get upate for e.g.) but I am not sure what I would have to put in there to stop them being asked for a password on connecting to a new wifi network –  fpghost Jan 18 '13 at 9:32
    
ha you got me there. I would have made it an answer if I knew that from memory (been searching for a bit but did not find it yet :D ) –  Rinzwind Jan 18 '13 at 9:33
    
yeah, must be something of the form someUser ALL=(root)NOPASSWD:/path/to/somethingControllingWiFi I presume, if this is indeed the way to go. –  fpghost Jan 18 '13 at 9:36
    
It sure is :) .. –  Rinzwind Jan 18 '13 at 9:39
show 5 more comments

2 Answers

I found success with the following solution in Ubuntu 13.04:

Open /usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy with root/sudo privileges and search for the following line:

    <message>System policy prevents modification of network settings for all users</message>

A few lines below that should be this:

    <allow_active>auth_admin_keep</allow_active>

Change it to:

    <allow_active>yes</allow_active>

Save the file and restart your computer.

share|improve this answer
add comment

This isn't really the fix I was hoping for but one workaround I've found is just to disable NetworkManager all-together and instead use Wicd.

First stop NetworkManager from running at startup:

sudo gedit /etc/NetworkManager/NetworkManager.conf

then # out the managed line. Also # out #start on (local-filesystems and started dbus) from /etc/init/network-manager.conf . Then just to make double sure

sudo mv /etc/init/network-manager.conf /etc/init/network-manager.conf-disabled
sudo mv /etc/xdg/autostart/nm-applet.desktop /etc/xdg/autostart /nm-applet.desktop.disabled  

Now can just use Wicd and no password prompts needed it seems.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.