[QUOTE=malcolmlewis;29076]Hi
That’s correct, so as the regular user on the wifi settings and select
the ‘Identify’ section, then select make available to other users.
Enter the root password and it should all work fine after that.
If that doesn’t work the for sure it’s a polkit setting, need to
investigate more if above doesn’t work.
[/QUOTE]
Hi.
I am not getting prompted for root password but get an error about “insufficient privileges” instead.
If I open nm-connection-editor as root, I can setup connections easily.
The connections root setup works for the non-root user, when make available to other users is selected.
So the issue is error messages about “insufficient privileges” every time the non-root user touch a network setting.
When we used a DisplayManager we didn’t get these messages and we could connect to a WiFi network, enter WPA2 password and the connection was saved for auto-connect - all done by the non-root user without entering root password.
The DM we used was LightDM and apparently it was taken care of some permission/polkit settings so that non-root user has privileges to edit network-connections and probably also other functions we are not using currently.
I think we are missing something in our systemd “startx” service or xinitrc file, so that polkit is not setup the right way.
Or that it has something to do with the VT we are starting X on like described at this link:
http://comments.gmane.org/gmane.linux.arch.general/44630
----copy from the link----
If you don’t use a display manager, it means you won’t have a
registered pam session for your graphical login, which means login
won’t give the correct info to polkit (it will think that there is no
active session).
A workaround for this is to start your WM on the same VT as your
consolelogin, and hence “steal” that pam session. I believe the magic
incantation is:
----end copy from the link----
Have tried all suggestions I have been able to find but without any luck so far.
This is our very simple login setup:
Used the example you linked to (last method 2): https://wiki.gentoo.org/wiki/X_without_Display_Manager#X11_autologin_with_systemd
1:
created systemd service file:
[CODE][Unit]
After=systemd-user-sessions.service
[Service]
ExecStart=/bin/su username -l -c /usr/bin/xinit – VT08
[Install]
WantedBy=multi-user.target [/CODE]
2:
created xinitrc file in user home dir based on the xinitrc.template and are using this with default settings
3:
Installed icewm and changed WindowManager to icewm in /etc/sysconfig/windowmanager
We have startup programs etc. in the icewm startup file but I will leave that out for now.
In the above clean and simple setup we need to setup some dbus-1 and polkit-1 related rules for our user, so that it works like if we were still using a DisplayManager.
We need NetworkManager the most so this is what we test with:
We have followed the suggestions here in order to allow our user to use NetworkManager: http://awesome.naquadah.org/wiki/Nm-applet
Adding our user to the /etc/dbus-1/system.d/NetworkManager.conf file works and NetworkManager / nm-applet is loaded for our user.
So I believe the dbus-1 setup works.
However setup privileges for our user in order to get rid of “Failed to add new connection: (32) Insufficient privileges” with a polkit-1 rule doesn’t work.
Described here: http://jeffhoogland.blogspot.fr/2012/05/howto-give-network-manager-sufficient.html
So I think this is polkit related.
Any idea?
Thanks.
Kind Regards,
Kevin