[PATCH] tests: Fix Permission denied on Fedora

Jouni Malinen j at w1.fi
Sat Dec 30 07:28:30 PST 2017

On Sat, Dec 30, 2017 at 08:30:53AM +0900, Masashi Honma wrote:
> Th wpa_cli and hostapd_cli looks fails on Fedora without sudo.

Why is that the case? Is there no admin or adm group for the user (see
p2p0.conf GROUP=admin and start.sh updating that if needed)? What allows
the specific user to run sudo? Is that yet another group that start.sh
should change the group into?

> -	if $WPACLI -g /tmp/wpas-wlan$i ping | grep -q PONG; then
> +	if sudo $WPACLI -g /tmp/wpas-wlan$i ping | grep -q PONG; then

This could obviously be done to force the control interface connection
to work, but the goal of that GROUP=admin is to avoid this type of need
in the first place.

Jouni Malinen                                            PGP id EFC895FA

More information about the Hostap mailing list