Results 1 to 3 of 3

Thread: Knetworkmanager permissions issue - Passive Mode

  1. #1

    Post Knetworkmanager permissions issue - Passive Mode

    For some reason all of a sudden kenetworkmanager starts up and shows "applet in standby mode" - tracking it down I have discovered it appears to be an issue with the user not having permission, at least per dbus messages and the error displayed when running knetworkmanager from the console.

    I located /etc/dbus-1/system.d/NetworkManager.conf and edited the default profile to be allow rather than deny. That didn't work so I googled about and say some guys had luck with adding a policy for the network group - however, I don't believe there is a networks groups in Suse so this did nothing.

    This is also a bit weird because that files seems the most logical, but then again the error specifically states:
    Code:
    Registered settings object  /org/freedesktop/NetworkManagerSettings
    Yet no file named NetworkManagerSettings exists?

    There is this: /usr/share/dbus-1/system-services/org.freedesktop.NetworkManagerSystemSettings.service
    which contains:
    Code:
    [D-BUS Service]
    Name=org.freedesktop.NetworkManagerSystemSettings
    Exec=/usr/sbin/nm-system-settings --config /etc/NetworkManager/nm-system-settings.conf
    User=root
    Any suggestions on what I might be mising here to get this working again?

    (Note - it starts up fine as the root user and I can see my wireless networks and connect, ect. It just fails when connecting
    as a non-root user>)

    Thank you,
    Lews Therin

    * * Helpful Suff * * *

    Code:
    paracelsus@Callandor:~> knetworkmanager
    knetworkmanager(13344) NMDBusSettingsService::NMDBusSettingsService: Unable to register service QDBusError("org.freedesktop.DBus.Error.AccessDenied", "Connection ":1.225" is not allowed to own the service "org.freedesktop.NetworkManagerUserSettings" due to security policies in the configuration file")
    knetworkmanager(13344) NMDBusSettingsService::NMDBusSettingsService: Registered settings object  /org/freedesktop/NetworkManagerSettings
    /var/log/messages contains

    Code:
    Oct  4 17:03:42 Callandor dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.204" (uid=1000 pid=12492 comm="knetworkmanager ") int
    erface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager" (uid=0 pid=3187 comm="/us
    r/sbin/NetworkManager "))
    Oct  4 17:03:42 Callandor dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.204" (uid=1000 pid=12492 comm="knetworkmanager ") int
    erface="org.freedesktop.NetworkManager" member="GetDevices" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager" (uid=0 pid=3187 com
    m="/usr/sbin/NetworkManager "))
    Oct  4 17:03:42 Callandor dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.204" (uid=1000 pid=12492 comm="knetworkmanager ") int
    erface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager" (uid=0 pid=3187 comm="/us
    r/sbin/NetworkManager "))
    Oct  4 17:03:42 Callandor dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.204" (uid=1000 pid=12492 comm="knetworkmanager ") int
    erface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager" (uid=0 pid=3187 comm="/us
    r/sbin/NetworkManager "))
    Oct  4 17:03:42 Callandor dbus-daemon: Rejected send message, 2 matched rules; type="method_call", sender=":1.204" (uid=1000 pid=12492 comm="knetworkmanager ") int
    erface="org.freedesktop.DBus.Properties" member="Get" error name="(unset)" requested_reply=0 destination="org.freedesktop.NetworkManager" (uid=0 pid=3187 comm="/us
    r/sbin/NetworkManager "))
    vim /etc/dbus-1/system.d/NetworkManager.conf

    Code:
    <!DOCTYPE busconfig PUBLIC
     "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
     "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
    <busconfig>
            <policy user="root">
                    <allow own="org.freedesktop.NetworkManager"/>
                    <allow send_destination="org.freedesktop.NetworkManager"/>
    
                    <allow send_destination="org.freedesktop.NetworkManager"
                           send_interface="org.freedesktop.NetworkManager.PPP"/>
            </policy>
    
            <policy group="network">
            <allow own="org.freedesktop.NetworkManagerUserSettings"/>
            <allow send_destination="org.freedesktop.NetworkManagerUserSettings"/>
            <allow send_interface="org.freedesktop.NetworkManagerUserSettings"/>
    
            <deny send_interface="org.freedesktop.NetworkManagerSetting.Secrets"/>
            </policy>
    
    
            <policy at_console="true">
                    <allow send_destination="org.freedesktop.NetworkManager"/>
    
                    <allow send_destination="org.freedesktop.NetworkManager"
                          send_interface="org.freedesktop.NetworkManager.PPP"/>
            </policy>
            <policy context="default">
                    <allow own="org.freedesktop.NetworkManager"/>
                    <allow send_destination="org.freedesktop.NetworkManager"/>
    
                    <allow send_destination="org.freedesktop.NetworkManager"
                          send_interface="org.freedesktop.NetworkManager.PPP"/>
            </policy>
    
            <limit name="max_replies_per_connection">512</limit>
    </busconfig>

  2. #2

    Smile Re: Knetworkmanager permissions issue - Passive Mode

    Anyone have a bright idea on this one? Not a huge deal, and I'm sure I'll figure it out, but if some has been down this road before . . .

    Cheers,
    LewsTherin

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,698
    Blog Entries
    1

    Default Re: Knetworkmanager permissions issue - Passive Mode

    Did this happen after an update? Have a read of this thread. Maybe it offers a solution. (In particular, /etc/dbus-1/system.d/nm-applet.conf may be relevant here).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •