On 29/07/2009 06:52, Bernard Mentink said the following:
> 
> 
> On Wed, Jul 29, 2009 at 3:14 PM, Bernard Mentink <bment...@gmail.com 
> <mailto:bment...@gmail.com>> wrote:
> 
> 
> 
>     On Wed, Jul 29, 2009 at 9:46 AM, Jason Tackaberry <t...@urandom.ca
>     <mailto:t...@urandom.ca>> wrote:
> 
>         On Tue, 2009-07-28 at 17:15 +1200, Bernard Mentink wrote:
>          > It seems like freevo is looking at the wrong device (I have
>          > a /dev/lirc0 and a /dev/lirc_01)
>          > Is there some configuration file where I need to tell freevo the
>          > device?
> 
>         Freevo (via pylirc) doesn't talk to the lirc device, but rather
>         through
>         lircd.  Is /dev/lircd readable by the user running freevo?
> 
> 
>     Hi,
> 
>     The device has 666 permissions .... anything else I should check.
> 
>     Cheers,
>     Bernie
> 
> 
> Ok, I am in a right pickle now. I can't even run irw as a normal user, I 
> have to run it as root.
> Really confused over the permission thing.
> 
> At the moment /dev/lircd, /dev/lirc0 all have 666 permissions, all have 
> owner as root.root /usr/local/sbin/lircd  has 777 permissions owner 
> root.root...
> 
> When I try to run lircd as a normal user, I get this error:
> 
> lircd -d /dev/lirc0
> lircd: can't open or create /var/run/lirc/lircd.pid
> lircd: Permission denied
> 
> I have set /var/run/lirc and /var/run/lirc/lircd to 666 permissions as well.

/var/run/lirc is a directory so it will need the 'x' permission as well, 
  so as over kill you can set the permission to 777

> Do I have to set all the above programes to user root.myuser as well?
> 
> Any help appreciated.

One useful trick is to use strace on programs that you have no idea 
about what is going on. So for example:
strace -o lircd.strace lircd -d /dev/lirc0
will create a log called lircd.strace that you can look at to see what 
is happening.

Duncan

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to