Forum

Full Version: LIRC GPIO setup permission denied.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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
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.
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
(28th Jun, 2013 09:33 AM)jpaytoncfd Wrote: [ -> ]CHmod -x did nothing. Still permission denied.

root@xbian:/usr/local/bin# chmod -x lircrcd mode2 irrecord

Why -x? U need +x there.
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.
Reference URL's