You are not logged in.

#1 2021-06-24 13:32:02

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

cannot bring USB wifi dongle up as a root: Operation not permitted

Hi,

I have a USB wifi dongle TP-LinkAC600.

It had worked fine for a year with https://aur.archlinux.org/packages/rtl8 … -dkms-git/ .

But now, for some reason, it stopped working with iwctl.

Specifically, it seems I cannot bring the device up. Any ideas of what I could do, please?

(base) [dan@think460s ~]$ rfkill list
0: tpacpi_bluetooth_sw: Bluetooth
	Soft blocked: yes
	Hard blocked: no
1: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no
2: phy1: Wireless LAN
	Soft blocked: no
	Hard blocked: no
(base) [dan@think460s ~]$ iwctl adapter list
                                    Adapters                                   
--------------------------------------------------------------------------------
  Name               Powered   Vendor              Model               
--------------------------------------------------------------------------------
  phy0               on        Intel CorporationWireless 8260
  phy1               on        TP-LinkAC600 wireless Realt

(base) [dan@think460s ~]$ iwctl device list
                                    Devices                                    
--------------------------------------------------------------------------------
  Name                Address             Powered   Adapter   Mode      
--------------------------------------------------------------------------------
  cwbuiltinintel      f4:8c:50:84:c7:e0   on        phy0      station   

(base) [dan@think460s ~]$ sudo ip link show dev cwusbtplink
[sudo] password for dan: 
3: cwusbtplink: <BROADCAST,MULTICAST> mtu 2312 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether d0:37:45:7b:9a:f7 brd ff:ff:ff:ff:ff:ff
    altname wlp0s20f0u3
(base) [dan@think460s ~]$ sudo ip link set cwusbtplink up
RTNETLINK answers: Operation not permitted
(base) [dan@think460s ~]$ 

The system is up to date, including that AUR package.

Last edited by Kotrfa (2021-06-24 13:32:29)

Offline

#2 2021-06-24 13:44:32

seth
Member
Registered: 2012-09-03
Posts: 57,289

Offline

#3 2021-06-24 13:52:50

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

Thanks, but even when I installed this one instead of the aircrack one, it's still the same behavior :-(

Offline

#4 2021-06-24 13:56:31

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

"lsusb -v" and check "dmesg -w" to monitor kernel messages when trying to bring the NIC up. Also check dmesg for related errors anyway.

Ceterum censeo, in case you've a parallel windows installation, see the 3rd link below.

Offline

#5 2021-06-24 15:47:49

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

dmesg when trying to bring it up:

[ 2811.231728] audit: type=1100 audit(1624549545.175:128): pid=151350 uid=1000 auid=1000 ses=1 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="dan" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 2811.240321] audit: type=1101 audit(1624549545.182:129): pid=151350 uid=1000 auid=1000 ses=1 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="dan" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 2811.246561] audit: type=1110 audit(1624549545.185:130): pid=151350 uid=1000 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 2811.247631] audit: type=1105 audit(1624549545.192:131): pid=151350 uid=1000 auid=1000 ses=1 msg='op=PAM:session_open grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 2811.474951] audit: type=1106 audit(1624549545.419:132): pid=151350 uid=1000 auid=1000 ses=1 msg='op=PAM:session_close grantors=pam_limits,pam_unix,pam_permit acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'
[ 2811.475149] audit: type=1104 audit(1624549545.419:133): pid=151350 uid=1000 auid=1000 ses=1 msg='op=PAM:setcred grantors=pam_faillock,pam_permit,pam_faillock acct="root" exe="/usr/bin/sudo" hostname=? addr=? terminal=/dev/pts/2 res=success'

plugging it out and in again (also journalctl gist: https://gist.github.com/hnykda/e279bcbc … 7e75cac46):

[ 2979.748383] usb 1-3: USB disconnect, device number 3
[ 2979.802057] audit: type=1130 audit(1624549713.743:140): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[ 2982.809572] usb 1-3: new high-speed USB device number 11 using xhci_hcd
[ 2982.954142] usb 1-3: New USB device found, idVendor=2357, idProduct=011e, bcdDevice= 2.00
[ 2982.954156] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2982.954162] usb 1-3: Product: 802.11ac WLAN Adapter 
[ 2982.954167] usb 1-3: Manufacturer: Realtek 
[ 2982.954171] usb 1-3: SerialNumber: 00e04c000001
[ 2983.318151] rtl8821au 1-3:1.0 cwusbtplink: renamed from wlan0
[ 2988.183399] audit: type=1131 audit(1624549722.126:141): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-rfkill comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

and I don't see anything obvious.

the lsusb -v: https://gist.github.com/hnykda/f6c21543 … 7cad9059ce

I don't have parallel windows installation

Last edited by Kotrfa (2021-06-24 15:53:08)

Offline

#6 2021-06-24 16:23:16

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

Rien…

Does ip yell an error at you when you try to bring the NIC up?
What's the output of "ip a" afterwards (sanity check, ppl. get confused about which up/down value matters…)

Offline

#7 2021-06-24 17:14:28

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

No, it just says that `RTNETLINK answers: Operation not permitted` :-/

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s31f6: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether c8:5b:76:cd:aa:36 brd ff:ff:ff:ff:ff:ff
3: cwbuiltinintel: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether f4:8c:50:84:c7:e0 brd ff:ff:ff:ff:ff:ff
    altname wlp4s0
    inet 192.168.0.231/24 scope global noprefixroute cwbuiltinintel
       valid_lft forever preferred_lft forever
7: cwusbtplink: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether d0:37:45:7b:9a:f7 brd ff:ff:ff:ff:ff:ff
    altname wlp0s20f0u3
10: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 500
    link/none 
    inet 192.168.208.3/22 scope global tun0
       valid_lft forever preferred_lft forever
    inet6 fe80::be74:e819:1b24:dfc2/64 scope link stable-privacy 
       valid_lft forever preferred_lft forever

Offline

#8 2021-06-24 19:26:43

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

Offline

#9 2021-06-24 19:37:59

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

That's what I tried based on your first reply, no luck unfortunately :-(

Offline

#10 2021-06-24 19:42:00

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

No, you're on 8821au and this suggest 8812au - it's not the same one.

Offline

#11 2021-06-24 19:50:51

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

Oh, sorry! Will try

Last edited by Kotrfa (2021-06-24 19:51:40)

Offline

#12 2021-06-24 20:00:50

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

With 8812au it doesn't even recognize that as a device (nor iwd nor `ip a`)

Offline

#13 2021-06-24 20:49:44

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

Found https://github.com/abperiasamy/rtl8812AU_8821AU_linux through https://github.com/zebulon2/rtl8812au-d … 9/issues/8 - latest commit is ~11 months old.
Does the lts kernel btw. work?

Offline

#14 2021-06-25 10:44:56

Kotrfa
Member
Registered: 2012-10-25
Posts: 213

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

LTS 5.10 doesn't work either even though it used to work. I am suspecting that it could be the hardware failure then?

Offline

#15 2021-06-25 11:08:02

seth
Member
Registered: 2012-09-03
Posts: 57,289

Re: cannot bring USB wifi dongle up as a root: Operation not permitted

LTS used to works w/ the 88xxau driver, though? Did you test that?

Offline

Board footer

Powered by FluxBB