Re: Problem with Script to restart NetworkManager



Felipe Ferreira wrote:
> *Problem:*
> My script to reload NetworkManager (if internet conection is lost) fails
> because it cannot get the "GetSecrets" even if I run crontab even as root.
> 
> CRONTAB:
> #*/5 * * * * /home/felix/Scripts/testnet.sh
> 
> testnet.sh:
> #!/bin/bash
> #Script to test internet connection and restart Network Manager if it fails.
> /*ping -c 2 -w 3 google.com || /etc/init.d/NetworkManager restart*/
> 
> 
> *Error Msg:*
> Mar 24 20:55:10 SYSMENGO NetworkManager: /<WARN>  get_secrets_cb():
> Couldn't get connection secrets: A security policy in place prevents
> this sender from sending this message to this recipient, see message bus
> configuration file (rejected message had interface
> "org.freedesktop.NetworkManagerSettings.Connection.Secrets" member
> "GetSecrets" error name "(unset)" destination
> "org.freedesktop.NetworkManagerUserSettings"). /
> 
> Related Bug:
> https://bugzilla.redhat.com/show_bug.cgi?id=487722
> 
> Automatic Keyring, is that the solution? how can it be done?
> Is there another way to do this?

This bug is likely due to the changes in Dbus security associated with
CVE-2009-0578. Another discussion of it can be found at
https://bugzilla.novell.com/show_bug.cgi?id=486267.

Some systems are fixed by deleting an extraneous directory
/var/run/dbus/at_console/root. Others need changing of the "at_console" rules.
If you do not have the extra directory or deleting it doesn't help, try the
patches for /etc/dbus-1/system.d/nm-applet.conf or
/etc/dbus-1/system.d/knetmamager.conf.

Larry



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]