![]() |
LIRC GPIO setup permission denied. - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Hardware (/forum-7.html) +--- Forum: Peripherals (/forum-27.html) +--- Thread: LIRC GPIO setup permission denied. (/thread-1042.html) |
LIRC GPIO setup permission denied. - jpaytoncfd - 27th Jun, 2013 11:11 PM I am trying to set up a GPIO ir receiver on the raspberry pi. When I try to run any of the associated programs (mode2, irrecord, irw) I get permission denied. I tried running as xbian and root. same either way. Am I doing something wrong? RE: LIRC GPIO setup permission denied. - IriDium - 28th Jun, 2013 12:53 AM I guess you are running Alpha 1. Reported on Github https://github.com/xbianonpi/xbian/issues/390. You can change them yourself with sudo chmod +x /usr/local/bin/xxx where xxx is the executable RE: LIRC GPIO setup permission denied. - jpaytoncfd - 28th Jun, 2013 07:00 AM Nope, Beta 1. I did have this issue with alpha 1 as well. and I installed Beta 1 from scratch. but I will give that a try. RE: LIRC GPIO setup permission denied. - jpaytoncfd - 28th Jun, 2013 09:33 AM CHmod -x did nothing. Still permission denied. root@xbian:/usr/local/bin# chmod -x lircrcd mode2 irrecord root@xbian:/usr/local/bin# modprobe lirc_rpi root@xbian:/usr/local/bin# mode2 -d /dev/lirc0 -bash: /usr/local/bin/mode2: Permission denied root@xbian:/usr/local/bin# /etc/init.d/lirc restart [FAIL] Stopping remote control daemon(s): LIRC: failed! [ ok ] Loading LIRC modules:. [ ok ] Starting remote control daemon(s) : LIRC :. root@xbian:/usr/local/bin# mode2 -d /dev/lirc0 -bash: /usr/local/bin/mode2: Permission denied GOT IT!!! Needed to change the permissions to 777 RE: LIRC GPIO setup permission denied. - kraleksandr - 28th Jun, 2013 09:22 PM (28th Jun, 2013 09:33 AM)jpaytoncfd Wrote: CHmod -x did nothing. Still permission denied. Why -x? U need +x there. RE: LIRC GPIO setup permission denied. - jpaytoncfd - 29th Jun, 2013 11:01 PM That was a typo. The permissions were the real issue though. 777 does the trick. +x makes it work if running as root. 777 lets me run it without sudo. |