Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.34k
stars
308
forks
source link
A hotspot cannot be created on Debian Linux unless PATH is modified #393
Describe the bug
An hotspot cannot be created on Debian systems due to iw being placed under /sbin/iw by default. Also by default, /sbin is not in PATH, making iw an invalid command the software is trying to execute.
Due to this, the WiFi Interfaces drop down menu doesn't get populated.
To Reproduce
Steps to reproduce the behavior:
Be on Debian 12 system
Open application
Expected behavior
The WiFi Interfaces drop down menu should be populated by available WiFi interfaces.
Screenshots
Desktop (please complete the following information):
OS: Debian 12.4 (6.5.0-0.deb12.4-amd64)
Version 4.7.1
Additional context
You can successfully launch and use the program by running it with the following line:
PATH=$PATH:/sbin ; sh -c 'env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/wihotspot'
This is intended on Debian as, in GNU systems, the /sbin directory is meant to be utilized as the directory to store binaries that are intended for superuser rights and not regular ones.
Adding them to PATH, or to /bin directly for that matter, might not cause that much of an impact for an average end-user unless they're explicitly targeted.
However, doing that change WILL cause issues on servers as that means superuser tools are exposed directly to regular user accounts, even those without sudo rights, too; and it only takes a chain of zero-day vulnerabilities (or any unpatched vulnerabilities for that matter) in those tools for a threat actor to gain full control of a given server.
Such a thing happened countless times in the past, it still happens today and it will keep happening in the future.
Your workaround only works because you're doing what Debian didn't intend to do, but Ubuntu did.
No promises, but I'm thinking about looking into this as I rely on this package for enabling hotspot on my laptop most of the time
And because I recently installed Debian on it.
As a foot note: This issue impacts not just Debian but any other distro that goes for a similar or the exact same approach, so it has a much wider impact than what the developer of this package seems to assume.
Describe the bug An hotspot cannot be created on Debian systems due to
iw
being placed under/sbin/iw
by default. Also by default,/sbin
is not in PATH, makingiw
an invalid command the software is trying to execute. Due to this, the WiFi Interfaces drop down menu doesn't get populated.To Reproduce Steps to reproduce the behavior:
Expected behavior The
WiFi Interfaces
drop down menu should be populated by available WiFi interfaces.Screenshots
Desktop (please complete the following information):
Additional context You can successfully launch and use the program by running it with the following line:
PATH=$PATH:/sbin ; sh -c 'env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/wihotspot'