Re: how to find out regdomain/country of wifi network
On 2023-05-13 18:02:18 +0800, Jeremy Ardley wrote:
>
> On 13/5/23 17:57, Vincent Lefevre wrote:
> > Moreover, it should not be necessary to be root: you are just
> > reading non-private data. However, "list countries" does not
> > seem to exist.
>
> Debian 11 seems to have a different opinion on who can run ifconfig.
> Sudo or root is required.
Wrong.
> jeremy@client:~$ ifconfig enp8s0
> bash: ifconfig: command not found
> jeremy@client:~$ sudo ifconfig enp8s0
> enp8s0: flags=4098<BROADCAST,MULTICAST> mtu 1500
[...]
You should learn what a run path is. A "command not found" just means
that the command isn't in your path. So, provide the path explicitly
or add /sbin to $PATH.
zira:~> ifconfig enp0s25
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
ether 30:8d:99:25:ad:3f txqueuelen 1000 (Ethernet)
device interrupt 20 memory 0xd2100000-d2120000
No need to be root or use sudo (I've always had /sbin in my path).
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Reply to: