USB Ethernet Adapter not getting IP under non-root account

versatile 64-bit multi-user Linux distribution

Moderators: kirk, jamesbond, p310don, JakeSFR, step, Forum moderators

Post Reply
Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

USB Ethernet Adapter not getting IP under non-root account

Post by Neo_78 »

As many laptops nowadays ship without an internal ethernet card, I am using an USB ethernet adapter to connect to my router. This works fine when I am using Fatdog's root account and automatically connects via DHCP when it is plugged in.

However, when I am trying to connect to the network from a non-root user account, the USB adapter does not start automatically, when I plug it in. I can start it with sudo ip link set dev eth0 up, but it is not obtaining an IP from the router and I cannot get online. I can only assume that this must be a permissions problem that does not allow correct ethernet connectivity as it works in the root account without any manual intervention.

Could you guide me in the right direction how this could be fixed? :thumbup:

step
Posts: 545
Joined: Thu Aug 13, 2020 9:55 am
Has thanked: 56 times
Been thanked: 197 times
Contact:

Re: USB Ethernet Adapter not getting IP under non-root account

Post by step »

After plugging in the adapter, have you tried right-clicking the Network Tool icon and choosing Restart Connection?

Neo_78
Posts: 407
Joined: Wed Dec 29, 2021 10:45 pm
Has thanked: 232 times
Been thanked: 11 times

Re: USB Ethernet Adapter not getting IP under non-root account

Post by Neo_78 »

@step yes, I have tried that with the same result ; i.e. no IP. If I don't run sudo ip link set dev eth0 up the adapter remains in down state, but even when I start it manually in this way, I don't get an IP... :(

No problems at all in the root account, so this must be a permissions / mounting problem...

Update:

If the USB ethernet adapter is already plugged in when I boot the system, I am able to connect to the network under the non-root user account. Fatdog seems to have an issue with USB plug and play functionality if the system is already running under a non-root user.

Post Reply

Return to “FatDog64”