Unaccessible CUL USB stick under linux

Begonnen von Guest, 02 Dezember 2011, 00:20:12

Vorheriges Thema - Nächstes Thema

Guest

Originally posted by: <email address deleted>

Guys,

Finally I got my CUL from busware.de, I installed the firmware and I
can access the device without issues as root user, but fhem user
cannot access the device, which is binded on /dev/ttyACM0.

fhem is a member of dialout linux group (adduser fhem dialout), the /
dev/ttyACM0 likes this:

root@torch:/# ls -la /dev/ttyACM0
crw-rw---T 1 root dialout 166, 0 dec    1 23:09 /dev/ttyACM0
root@torch:/# lsusb | grep "Atmel"
Bus 004 Device 004: ID 03eb:204b Atmel Corp. LUFA USB to Serial
Adapter Project
root@torch:/# cat /etc/passwd | grep fhem
fhem:x:999:999::/var/log/fhem:/bin/false
root@torch:/# adduser fhem dialout
`fhem' felhasználó már tagja a e csoportnak: dialout.
root@torch:/# cat /etc/groups | grep 999
cat: /etc/groups: Nincs ilyen fájl vagy könyvtár
root@torch:/# cat /etc/group | grep 999
fhem:x:999:

So as you can see fhem user is capable of dialout, the /dev/ttyACM0
has dialout group... but it's not working...

There is no hardware issue, because when I start FHEM as root I can
access everything..

I see this in the FHEM log file:
2011.12.01 23:09:10 3: CUL opening CUL device /dev/ttyACM0
2011.12.01 23:09:10 3: Can't open /dev/ttyACM0: Permission denied

What can be wrong?

Any help is appreciated.

I'm using Debian Wheezy BTW.

Thanks in advance,

Szabi

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

rudolfkoenig

                                                   

> fhem user cannot access the device, which is binded on /dev/ttyACM0.

I don't see the problem either, perhaps you can debug it by doing an "su fhem",
(change /bin/false to a shell before), checking "id -a" and trying to access
/dev/ttyACM0 e.g. with screen.

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

Guest

Originally posted by: <email address deleted>

I got the same problem - permission denied.

Try to resolve the problem by chmod 777 /dev/ttyACM0

I know this is not the best way of fixing permission problems but
after testing 777 I changed back to 660 and everything worked fine - I
don't know why but now the cul was working :-)

chris

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com

Guest

Originally posted by: <email address deleted>

It seems there is a bug in Debian around udev.
I created an udev rule to let fhem own the device, it's working now,
despite I know this is a workaround.
chowning / chmodding the device won't work after reboot under Kernel 2.6<.

Since this is a non-production use of the device, I'm fine with living
the workaround.

2011.12.02. 13:04 keltezéssel, Christian írta:
> I got the same problem - permission denied.
>
> Try to resolve the problem by chmod 777 /dev/ttyACM0
>
> I know this is not the best way of fixing permission problems but
> after testing 777 I changed back to 660 and everything worked fine - I
> don't know why but now the cul was working :-)
>
> chris
>

--
To unsubscribe from this group, send email to
fhem-users+unsubscribe@googlegroups.com