I tried the following answer to disable networking, but an error is thrown when I log in.

systemctl disable dhcpcd

rfkill: cannot open /dev/rfkill: Permission denied

I also disabled Bluetooth and Wi-Fi by adding dtoverlay=disable-bt and dtoverlay=disable-wifi to /boot/config.txt.

Would you happen to know how to fix this?

1 Answer 1


Figured it out!

The issue is triggered by /etc/profile.d/wifi-check.sh.

Here is a fix:

sudo sed -i '2i\ \ \ \ \ \ \ \ exit 0' /etc/profile.d/wifi-check.sh
  • Welcome to RPi SE, and congratulations on solving your problem!
    – Seamus
    Mar 4, 2021 at 21:22
  • It works on RPi4 as well!
    – Feriman
    Sep 8 at 19:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.