Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => dCore x86 Imported Extensions => Topic started by: jls on February 27, 2015, 02:03:08 AM

Title: econnman requires the user to be part of the netdev group for wifi
Post by: jls on February 27, 2015, 02:03:08 AM
Hi
in order for the normal user to use wpa_supplicant via dbus, he needs to be added to the netdev group as u can see:
Code: [Select]
jls@vesa:~$ cat /etc/dbus-1/system.d/wpa_supplicant.conf
<!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="fi.epitest.hostap.WPASupplicant"/>

                <allow send_destination="fi.epitest.hostap.WPASupplicant"/>
                <allow send_interface="fi.epitest.hostap.WPASupplicant"/>

                <allow own="fi.w1.wpa_supplicant1"/>

                <allow send_destination="fi.w1.wpa_supplicant1"/>
                <allow send_interface="fi.w1.wpa_supplicant1"/>
                <allow receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/>
        </policy>
        <policy group="netdev">
                <allow send_destination="fi.epitest.hostap.WPASupplicant"/>
                <allow send_interface="fi.epitest.hostap.WPASupplicant"/>

                <allow send_destination="fi.w1.wpa_supplicant1"/>
                <allow send_interface="fi.w1.wpa_supplicant1"/>
                <allow receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/>
        </policy>
        <policy context="default">
                <deny own="fi.epitest.hostap.WPASupplicant"/>
                <deny send_destination="fi.epitest.hostap.WPASupplicant"/>
                <deny send_interface="fi.epitest.hostap.WPASupplicant"/>

                <deny own="fi.w1.wpa_supplicant1"/>
                <deny send_destination="fi.w1.wpa_supplicant1"/>
                <deny send_interface="fi.w1.wpa_supplicant1"/>
                <deny receive_sender="fi.w1.wpa_supplicant1" receive_type="signal"/>
        </policy>
</busconfig>
jls@vesa:~$

so I added the following line in /opt/bootlocal.sh
Code: [Select]
usermod -aG netdev $(cat/etc/sysconfig/tcuser)
Title: Re: econnman requires the user to be part of the netdev group for wifi
Post by: jls on February 28, 2015, 07:36:41 AM
Hi
Actually the e19 connection manager module works also without adding the user to the netdev group
Title: Re: econnman requires the user to be part of the netdev group for wifi
Post by: jls on March 01, 2015, 01:37:10 AM
I cannot connect to non protected access points, while protected & ethernet cable do  work.
Title: Re: econnman requires the user to be part of the netdev group for wifi
Post by: Jason W on March 01, 2015, 05:32:54 PM
Thanks, I added a startup script for wpasupplicant that adds the $USER to the netdev group.

Title: Re: econnman requires the user to be part of the netdev group for wifi
Post by: jls on March 15, 2015, 05:36:02 AM
Hi
upgrading to the new kernel resolves enlightenment connection manager module problem of connecting to non protected access points