Error adding connection: NetworkManager

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Error adding connection: NetworkManager

Postby nvcn00 » Sat Dec 15, 2012 21:57

Hello,

Ever since I last updated I cannot set up any new connections using NetworkManager.

I am getting the error:

Code: Select all
Error adding connection: Error checking authorization:
GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed:
Action
org.freedesktop.NetworkManager.settings.modify.own
is not registered


I'm guessing its something with polkit but I don't know my way around that. I have been looking for an answer for a while and thought I'd ask.

Thanks.
nvcn00
Baby Hen
 
Posts: 3
Joined: Sat Dec 15, 2012 21:51

Re: Error adding connection: NetworkManager

Postby creh » Sun Dec 16, 2012 0:01

Do you have the file "/usr/sharepolkit-1/actions/org.freedesktop.NetworkManager.policy"? The action should be defined there. The part looks like this in my file:
Code: Select all
  <action id="org.freedesktop.NetworkManager.settings.modify.own">
    <description>Modify personal network connections</description>
    <description xml:lang="cs">Měnit osobní síťová připojení</description>
    <description xml:lang="de">Eigene Netzwerkverbindungen bearbeiten</description>
    <description xml:lang="eo">Modifi proprajn retkonektojn</description>
    <description xml:lang="es">Modificar las conexiones de red personales</description>
    <description xml:lang="fr">Modifier les connexions du réseau personnel</description>
    <description xml:lang="gl">Modificar as conexións de rede persoais</description>
    <description xml:lang="hu">Személyes hálózati kapcsolatok módosítása</description>
    <description xml:lang="id">Ubah koneksi jaringan personal</description>
    <description xml:lang="it">Modificare le connessioni personali</description>
    <description xml:lang="ko">개인 네트워크 연결을 수정합니다</description>
    <description xml:lang="lt">Keisti asmeninius tinklo ryšius</description>
    <description xml:lang="ml">സ്വന്തമായ നെറ്റ്​വര്‍ക്ക് കണക്ഷനുകളില്‍ മാറ്റം വരുത്തുക</description>
    <description xml:lang="mr">वैयक्तिक नेटवर्क जोडणी संपादित करा</description>
    <description xml:lang="pl">Modyfikacja osobistych połączeń sieciowych</description>
    <description xml:lang="pt_BR">Modificar conexões pessoais de rede</description>
    <description xml:lang="ru">Редактировать личные настройки подключения</description>
    <description xml:lang="sl">Spremeni osebne omrežne povezave</description>
    <description xml:lang="sv">Ändra personliga nätverksanslutningar</description>
    <description xml:lang="tr">Kişisel ağ bağlantılarını düzenle</description>
    <description xml:lang="uk">Змінити параметри особистих з’єднань з мережею</description>
    <message>System policy prevents modification of personal network settings</message>
    <message xml:lang="cs">Systémová zásada zabránila změně osobního síťového nastavení</message>
    <message xml:lang="de">Die Systemrichtlinien verhindern das Bearbeiten von eigenen Netzwerkeinstellungen</message>
    <message xml:lang="eo">Sistempolitiko preventas modifadon de propraj retagordoj</message>
    <message xml:lang="es">La política del sistema evita la modificación de la configuración personal de la red</message>
    <message xml:lang="fr">La politique du système empêche toute modification des paramètres réseau personnels</message>
    <message xml:lang="gl">A política do sistema impide a modificación da configuración persoal da rede</message>
    <message xml:lang="hu">A rendszer házirendje megakadályozza a személyes hálózati beállítások módosítását</message>
    <message xml:lang="id">Kebijakan sistem mencegah pengubahan tatanan jaringan pribadi</message>
    <message xml:lang="it">La politica di sistema impedisce di modificare le impostazioni di rete personali</message>
    <message xml:lang="ko">시스템 정책이 개인 네트워크 설정의 수정을 금지합니다</message>
    <message xml:lang="lt">Sistemos politika neleidžia keisti asmeninių tinklų nustatymų</message>
    <message xml:lang="ml"> സ്വന്തമായ നെറ്റ്​വര്‍ക്ക് സജ്ജീകരണങ്ങള്‍ മാറ്റം വരുത്തുന്നതു് സിസ്റ്റം പോളിസി തടയുന്നു</message>
    <message xml:lang="mr">प्रणाली करार, व्यक्तिगत नेटवर्क सेटिंग्स् संपादीत करण्यापासून रोखते</message>
    <message xml:lang="pl">Polityka systemu powstrzymuje modyfikację osobistych ustawień systemowych</message>
    <message xml:lang="pt_BR">Políticas de sistema previnem modificação das configurações pessoais de redes</message>
    <message xml:lang="ru">Системная политика запрещает изменение персональных настроек сети</message>
    <message xml:lang="sl">Sistemska določila preprečujejo spreminjanje osebnih omrežnih nastavitev</message>
    <message xml:lang="sv">Systemets policy förhindrar ändring av personliga nätverksinställningar</message>
    <message xml:lang="tr">Sistem kuralları, kişisel ağ ayarlarının değiştirilmesine izin vermiyor</message>
    <message xml:lang="uk">Правила системи забороняють внесення змін до особистих параметрів мережі</message>
    <defaults>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
    </defaults>
  </action>
creh
Young Hen
 
Posts: 25
Joined: Mon Nov 19, 2012 17:03
Location: Vienna, Austria

Re: Error adding connection: NetworkManager

Postby nvcn00 » Sun Dec 16, 2012 3:17

Thanks for the reply.

Yes I do have that file. The same problem persists however.
nvcn00
Baby Hen
 
Posts: 3
Joined: Sat Dec 15, 2012 21:51

Re: Error adding connection: NetworkManager

Postby creh » Sun Dec 16, 2012 16:00

Do other actions (like mounting a filesystem with a filemanager) work?
creh
Young Hen
 
Posts: 25
Joined: Mon Nov 19, 2012 17:03
Location: Vienna, Austria

Re: Error adding connection: NetworkManager

Postby nvcn00 » Sun Dec 16, 2012 16:56

Yes. Everything else is working fine. Just no internet.
nvcn00
Baby Hen
 
Posts: 3
Joined: Sat Dec 15, 2012 21:51

Re: Error adding connection: NetworkManager

Postby creh » Sun Dec 16, 2012 23:22

Did you check if there is a policy for the action "org.freedesktop.NetworkManager.settings.modify.own" in the policy file? I get the same error when I remove a policy.
creh
Young Hen
 
Posts: 25
Joined: Mon Nov 19, 2012 17:03
Location: Vienna, Austria

Re: Error adding connection: NetworkManager

Postby blain3 » Thu Dec 20, 2012 0:34

What about dhcpcd? or any terminal commands? I would try things like for example #iwlist wlan0 scan , #dhcpcd eth0 , check the man file if you have wicd, I'm "fairly" sure you can command line that with ncurses installed. Check the man NetworkManager file as well. Along with the file the error is coming from, although I'v no idea how much you know of network setup. Assuming not much, do a #ifconfig , then if your device is listed its at least up, if not, #ifconfig -a , if this brings up anything new IE: wlan0, usb0, eth0 ... use the #ifconfig up command to turn it on. These are pretty basic things so I dont know how much it would help you. I do know that when all else fails manually setup your net. files (a bit complicated for your error so i doubt thats it.) also you could reconfigure NetworkManager. Oh and possibly remove the file if all else fails, reboot and see if you can auto connect? recompile networkmanager.. sometimes those small errors are easily worked around and sometimes not so I'm just thinking of some abstract possibilities for you, and just reinstall networkmanager with the file deleted, just use --oneshot with emerge i would think you'd be fine with that. Oh and don't change anything you don't understand, or cp <file/path/to/file.whatever> to <file/path/to/file.whatever.OLD> so if something goes wrong you still have it. Gentoo documentation would also possibly help for manually configuring anything. Some thoughts.. but I'm also pretty careless so I would not advise listening to me much, as i would just edit the file, or some of the above until it worked.

#EDIT: looked into quickly and a common fix seems worth trying these:
#this in your default-polkit-privs.local ( this would be your /etc/default whatever privs.local file here)
org.freedesktop.NetworkManager.settings.modify.own auth_admin:auth_admin:yes
org.freedesktop.NetworkManager.settings.modify.system auth_admin:auth_admin:yes
#then, and im assuming your file names may be different than this so you might want to check.
/sbin/set_polkit_default_privs
#this would, i assume work. if not, try something like this:
#make a polkit.mods in your $HOME (if u dont have one) and add these into a file with vi/vim
org.freedesktop.NetworkManager.settings.modify.own auth_admin_keep:auth_admin:yes
#save it in there and do a :
su -C 'cat polkit.mods >> /etc/polkit-default-privs.local ; set_polkit_default_privs'

#^^^ thats what i found, you will most likely have to modify file locations / names to suit because that shits not even close on my non synced system atm and im sitting here moding files =/ needed a break hope it helps.
blain3
Baby Hen
 
Posts: 3
Joined: Sun Dec 02, 2012 2:44


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 2 guests