ghostbsd / networkmgr

NetworkMgr is a Python GTK3 network manager for FreeBSD, GhostBSD, TrueOS and DragonFlyBSD
BSD 3-Clause "New" or "Revised" License
95 stars 30 forks source link

incorrect pkg-message on FreeBSD #7

Closed ryansyah closed 6 years ago

ryansyah commented 7 years ago

Hello,

After installing net-mgmt/networkmgr on FreeBSD, I am given the following pkg-message post-install:

Always:
======================================================================

Any bug reports or request of new feature should be addressed at:
    https://github.com/GhostBSD/networkmgr/issues

Make sure that the /usr/local/etc/networkmgr/doas.conf have someting simular like this:

    permit nopass keepenv :wheel cmd netcardmgr
    permit nopass keepenv :wheel cmd detect-nics
    permit nopass keepenv :wheel cmd detect-wifi
    permit nopass keepenv :wheel cmd ifconfig
    permit nopass keepenv :wheel cmd service
    permit nopass keepenv :wheel cmd wpa_supplicant

When rebooting it should automaticaly start is the desktop support xdg and make
sure that the user using NetworkMgr is in the wheel group.

======================================================================

Following the above instructions, rebooting, then launching networkmgr from a normal user within X yields:

$ networkmgr 
doas: Operation not permitted
doas: Operation not permitted
doas: Operation not permitted
doas: Operation not permitted
doas: Operation not permitted
doas: Operation not permitted
doas: Operation not permitted
doas: Operation not permitted
doas: Operation not permitted
doas: Operation not permitted

Moving the /usr/local/etc/networkmgr/doas.conf to /usr/local/etc/doas.conf and relaunching networkmgr appears to work as intended:

$ networkmgr 
Your wired network card is already configured.
Stopping wpa_supplicant.
Waiting for PIDS: 317.
Stopping dhclient.
Waiting for PIDS: 391.
Stopping Network: lo0 re0 pflog0.
<additional output removed>

Based on these findings, it appears that the pkg-message should replace /usr/local/etc/networkmgr/doas.conf to /usr/local/etc/doas.conf instead.

Thanks!

ericbsd commented 6 years ago

I did send a patch for that thanks