Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: NinjaCowboy on January 20, 2019, 07:15:45 PM

Title: /dev/vchiq and /dev/input/* only accessible by root
Post by: NinjaCowboy 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?
Title: Re: /dev/vchiq and /dev/input/* only accessible by root
Post by: Rich 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.
Title: Re: /dev/vchiq and /dev/input/* only accessible by root
Post by: Paul_123 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.