Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

LIRC GPIO setup permission denied.
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
LIRC GPIO setup permission denied.
27th Jun, 2013, 11:11 PM
Post: #1
jpaytoncfd Offline
Registered
Posts: 4
Joined: Jun 2013
Reputation: 0
LIRC GPIO setup permission denied.
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?
Find all posts by this user
Quote this message in a reply
28th Jun, 2013, 12:53 AM
Post: #2
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: LIRC GPIO setup permission denied.
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

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
28th Jun, 2013, 07:00 AM
Post: #3
jpaytoncfd Offline
Registered
Posts: 4
Joined: Jun 2013
Reputation: 0
RE: LIRC GPIO setup permission denied.
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.
Find all posts by this user
Quote this message in a reply
28th Jun, 2013, 09:33 AM
Post: #4
jpaytoncfd Offline
Registered
Posts: 4
Joined: Jun 2013
Reputation: 0
RE: LIRC GPIO setup permission denied.
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
Find all posts by this user
Quote this message in a reply
28th Jun, 2013, 09:22 PM
Post: #5
kraleksandr Offline
Registered
Posts: 238
Joined: Feb 2013
Reputation: 9
RE: LIRC GPIO setup permission denied.
(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.
Find all posts by this user
Quote this message in a reply
29th Jun, 2013, 11:01 PM
Post: #6
jpaytoncfd Offline
Registered
Posts: 4
Joined: Jun 2013
Reputation: 0
RE: LIRC GPIO setup permission denied.
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.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 07:53 PM Powered By MyBB, © 2002-2025 MyBB Group.