Gnome applet for networkmanager-0.7.1-r3 shows 'Auto eth0' connection with the Edit button beside it. However, when I press Edit, I always get error message about PolicyKit (see attached screenshot). Thus, eth0 could be configured via DHCP only, while I want to provide it with the static IP address. Reproducible: Always Steps to Reproduce: 1. Emerge gnome-2.24.1. 2. Export ACCEPT_KEYWORDS="~x86", then emerge net-misc/networkmanager-0.7.1-r3 and gnome-extra/nm-applet-0.7.1-r1. Run polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME" as emerge advises. 3. Comment out eth0 configuration in /etc/conf.d/net, remove net.eth0 from default runlevel, add NetworkManager to default runlevel, add RC_PLUG_SERVICES="!net.eth0" to /etc/conf.d/rc, reboot Linux. 4. When Gnome comes up, you should see network manager applet icon in the notification area with 'Auto eth0' connection. Highlight this connection end press Edit button. Actual Results: Error message appears - see attached screenshot. Expected Results: Edit connection dialog box should appear, allowing me to assign static IP to eth0 interface. [12:09]:gnoome:networkmanager:#:>emerge --info Portage 2.1.6.11 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.29-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.29-gentoo-r5-i686-Intel-R-_Xeon-TM-_CPU_3.20GHz-with-glibc2.0 Timestamp of tree: Sat, 06 Jun 2009 01:30:01 +0000 app-shells/bash: 3.2_p39 dev-java/java-config: 2.1.7 dev-lang/python: 2.4.4-r13, 2.5.4-r2 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63 sys-devel/automake: 1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -march=i686 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O3 -march=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X berkdb bzip2 cairo cli cracklib custom-optimization dbus djvu epiphany exif fam fontconfig fortran gdbm gedit gif gnome gpm gtk hal iconv java jpeg jpeg2k kde kdeenablefinal mng ncurses networkmanager nocxx nptl nptlonly nsplugin openmp pam pcre perl png pppd python qt3 readline reflection sbg session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode x86 xorg zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa vmware" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Created attachment 193708 [details] Error message
no that's no gnome.
I can edit my Auto eth0 via networkmanager, so it's possible for it to work correctly. Do you have policykit installed? Do you have consolekit installed? Is consolekit running in the default runlevel?
Yes, both policykit and consolekit were installed as dependencies for networkmanager. Consolekit was not started in the default runlevel before. Now I added it, rebooted the machine, but the error message is still there. If you want, I can provide you with VNC access to this machine.
The invalid action id suggests networkmanager is asking policykit for some kind of auth, which policykit's looking up, but can't find it. Can you please check you have the file /usr/share/PolicyKit/policy/org.freedesktop.network-manager-settings.system.policy, and that networkmanager-0.7.1-r3 is installed (please try re-emerging it to make sure that something hasn't been updated in the background)...
The file /usr/share/PolicyKit/policy/org.freedesktop.network-manager-settings.system.policy exists, and contains the XML text pasted below. The text did not change after re-emerging networkmanager, neither did the error message disappear. <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"> <policyconfig> <vendor>NetworkManager</vendor> <vendor_url>http://www.gnome.org/projects/NetworkManager</vendor_url> <icon_name>nm-icon</icon_name> <action id="org.freedesktop.network-manager-settings.system.modify"> <description>Modify system connections</description> <message>System policy prevents modification of system settings</message> <defaults> <allow_inactive>no</allow_inactive> <allow_active>auth_admin_keep_always</allow_active> </defaults> </action> </policyconfig>
Ok this is my first time posting here, I've just recently upgraded my NetworkManager and Applet and found i have the same bug, I cannot edit the auto eth* connection, in my case it was an issue with policykit, nm-applet was trying to access the polkituser group as GID:1018 but in my /etc/group file it was set to 1017, so i edited the file, changed the GID to 1018 and added my user to the group and i can now edit the connect. I hope this helps
No, it does not help. I changed polkituser group ID from 1002 to 1018 in my /etc/group file. After reboot, I can start nm-connection-editor as root, select Edit on Auto eth0 connection, and the dialog box appears. However, I get PolicyKit error message when trying to save the values I enter (IP address, subnet mask, default gateway, DNS server and default domain). If I try to edit Auto eth0 connection properties as a regular user, not root, I get the very same error I did with polkituser group ID 1002.
In the latest build (0.7.1-r3) there is a postinstall message that says: To save system-wide settings as a user, that user needs to have the right policykit privileges. You can add them by running: 'polkit-auth --grant org.freedesktop.network-manager-settings.system.modify --user "USERNAME"' Hope this helps.
I have done this, as mentioned in Steps to Reproduce section. After changing group ID I have done this again, to be sure, but got error like 'that user already has that permission'.
I have similar problem, any another advises ?
for me add consolekit in the default runlevel help
I guess I should have verified: How are you starting X? startx or gdm?
if you asked me: gdm (from xdm init.d script) if I try start consolekit manually, it says: already started, but status is "not started" now after add to default runlevel: all ok
It's not X, it's VNC server. I start it by running /etc/init.d/vnc start. Maybe it's not a good idea to edit eth0 connection in VNC session, thus risking the session to be disconnected, but I need nm-applet to connect to different VPNs in VNC session. If there is a way to make network manager responsible for VPN connections only and configure eth0 with static IP without using network manager, it would be acceptable solution for me.
net-misc/networkmanager-0.7.1-r3 is no longer in the tree. Please close this bug.
This seems to work for me with 0.9.2.0-r2