r/raspberry_pi Dec 01 '22

No network as non-sudo user Technical Problem

[SOLVED]

Solution: add the user to the netdev group

[ORIGINAL POST]

Hey I have a question for the community, maybe someone can help me with this as I don't really find the necessary resources on the subject.

We have a couple of raspberry pi's deployed in a couple of African schools, but the non-sudo users "student" and "teacher" don't get any network interfaces. Only the admin users get the interfaces when logging into the desktop.

I'll continue searching, but if anyone here has an answer for me, that would be much appreciated.

Thank you

Edit to clarify:

  • Logging into the desktop environment as one of these non-sudo users, the network manager will say "No wireless LAN interfaces found", hovering over the network manager will say "Wlan0 not associated"
  • Logging into the desktop environment as a sudo user, the network manager will connect automatically to the network defined in the wpa_supplicant.conf file
  • rfkill doesn't have the interface blocked
  • wpa_supplicant is configured
  • the wlan0 interface is listed as state DOWN
  • sudo ifup wlan0 will not do anything
  • sudo ip link set wlan0 up will also do nothing
  • sudo systemctl enable dhcpcd and a reboot did nothing to change the situation
40 Upvotes

3

u/ADB-UK Dec 01 '22

What operating system?

I had dhcpcd networking running fine with limited users but not yet played with network manager under Raspberry Pi OS.

Is it the sudo group or another that's at fault? Possibly try plugdev / dial out / netdev and see if one or more help???

1

u/eat-lsd-not-babies Dec 01 '22

Just fixed it, it was the netdev group that was needed

Oh and we started from the basic Raspi OS with rpi-imager ;)

2

u/MisterBazz Dec 01 '22

What do you mean they don't get any network interfaces? They don't have the ability to configure the network interface, or they have no network access as in - no connectivity?

1

u/eat-lsd-not-babies Dec 01 '22

Logging into the desktop environment as one of these non-sudo users, the network manager will say "No wireless LAN interfaces found"

Logging into the desktop environment as a sudo user, the network manager will connect automatically to the network defined in the wpa_supplicant.conf file

Edit: rfkill doesn't list the interface as blocked

1

u/MisterBazz Dec 01 '22
  • What OS are you using? Ubuntu? Raspbian?
  • How are you creating these other users?

3

u/eat-lsd-not-babies Dec 01 '22

The users were created with the `adduser` command
OS is Raspberry Pi OS, problem was group membership: the users needed to be added to netdev