WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: /dev/vchiq and /dev/input/* only accessible by root  (Read 2315 times)

Offline NinjaCowboy

  • Newbie
  • *
  • Posts: 36
/dev/vchiq and /dev/input/* only accessible by root
« on: January 20, 2019, 07:15:45 PM »
I have a problem where the /dev/vchiq and /dev/input devices have permissions so that only root is able to use them. This causes problems with a few programs like retroarch, Kodi, and some SDL-based games. Of course, I can get around it by just doing 'sudo chmod 777 /dev/vchiq /dev/input*', but it's annoying to have to do that every single time. Is there a recommended way of fixing these permission issues that doesn't involve repacking the rpi-vc.tcz extension?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: /dev/vchiq and /dev/input/* only accessible by root
« Reply #1 on: January 20, 2019, 07:29:56 PM »
Hi NinjaCowboy
Quote
... I can get around it by just doing 'sudo chmod 777 /dev/vchiq /dev/input*', but it's annoying to have to do that every single time. Is there a recommended way of fixing these permission issues that doesn't involve repacking the rpi-vc.tcz extension?
Maybe you could add those commands to  /opt/bootlocal.sh.

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1265
Re: /dev/vchiq and /dev/input/* only accessible by root
« Reply #2 on: January 20, 2019, 10:42:59 PM »
Devices are not part of the package.   The dev devices are created by udev, you can create a rule.   But it's much simpler to do what Rich said.