[gelöst] ttyAMA0 Zugriffsrechte

Begonnen von Christophe, 18 September 2018, 15:59:14

Vorheriges Thema - Nächstes Thema

Christophe

Hallo Zusammen

Ich bin dabei das SCC Board von Busware nach deren Anleitung in Betrieb zu nehmen.

Mein Problem sind die Zugriffsrechte für das ttyAMA0:
crw--w---- 1 root tty 204, 64 Sep 18 14:46 ttyAMA0

Ein ändern der Rechte oder einer Besitzer Zuordnung bleibt nur Temporär erhalten. Bei einem Reboot oder dem Drücken der Taste werden die Rechte wieder zurück gesetzt. Einerseits macht ein Flashen mit TSSCC in Fhem unmöglich und nach einem reboot kann nicht mehr gelesen werden.

Kennt jemand diese Problem?

Grüsse aus der Schweiz

Christophe
FHEM auf Raspberry, Raspian Jessy, SSC von Busware, TSCUL 0.29

Wernieman

1. was für eine Distribution
2. Anstatt dem Device die Rechte zu Ändern, kannst Du es auch beim User tuen. Was sagt Dir wohl die "Gruppe" tty??
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Christophe

Raspberry: Jessi
FHEM: $Id: fhem.pl 17316 2018-09-10 13:07:04Z rudolfkoenig

FHEM und PI sind in der tty Gruppe, nützt aber nicht soviel, weil die Gruppe nur schreiben aber nicht lesen darf.




FHEM auf Raspberry, Raspian Jessy, SSC von Busware, TSCUL 0.29

Wernieman

Du meinst warscheinlich Debian-Jessy

Hast Du etwas un den UDEV-Rules geändert?
In welchem Verzeichnis bist Du?
Bzw. gib uns bitte mal:
ls -lha /dev/ttyUSB*
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Christophe

- Ja, Debian Jessy
- An den UDEV-Rules habe ich nichts gemacht.
- Fhem ist im Verzeichnis /opt/fhem

- Das SCC Modul wird über das GPIO angesteuert, es gibt kein ttyUSB.

pi@dola-homecontrol:~ $ ls -lha /dev/ttyAMA0
crw--w---- 1 root tty 204, 64 Sep 18 18:41 /dev/ttyAMA0
FHEM auf Raspberry, Raspian Jessy, SSC von Busware, TSCUL 0.29

Wernieman

Gib mir bitte über alle tty ... deshalb hatte ich auch einen * angegeben, ausversehen ist mir nur das USB reingerutscht ;o)
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Christophe

Gerne:

crw-rw-rw- 1 root tty       5,  0 Sep 19 07:26 /dev/tty
crw--w---- 1 root tty       4,  0 Sep 19 07:26 /dev/tty0
crw--w---- 1 root tty       4,  1 Sep 19 07:26 /dev/tty1
crw--w---- 1 root tty       4, 10 Sep 19 07:26 /dev/tty10
crw--w---- 1 root tty       4, 11 Sep 19 07:26 /dev/tty11
crw--w---- 1 root tty       4, 12 Sep 19 07:26 /dev/tty12
crw--w---- 1 root tty       4, 13 Sep 19 07:26 /dev/tty13
crw--w---- 1 root tty       4, 14 Sep 19 07:26 /dev/tty14
crw--w---- 1 root tty       4, 15 Sep 19 07:26 /dev/tty15
crw--w---- 1 root tty       4, 16 Sep 19 07:26 /dev/tty16
crw--w---- 1 root tty       4, 17 Sep 19 07:26 /dev/tty17
crw--w---- 1 root tty       4, 18 Sep 19 07:26 /dev/tty18
crw--w---- 1 root tty       4, 19 Sep 19 07:26 /dev/tty19
crw--w---- 1 root tty       4,  2 Sep 19 07:26 /dev/tty2
crw--w---- 1 root tty       4, 20 Sep 19 07:26 /dev/tty20
crw--w---- 1 root tty       4, 21 Sep 19 07:26 /dev/tty21
crw--w---- 1 root tty       4, 22 Sep 19 07:26 /dev/tty22
crw--w---- 1 root tty       4, 23 Sep 19 07:26 /dev/tty23
crw--w---- 1 root tty       4, 24 Sep 19 07:26 /dev/tty24
crw--w---- 1 root tty       4, 25 Sep 19 07:26 /dev/tty25
crw--w---- 1 root tty       4, 26 Sep 19 07:26 /dev/tty26
crw--w---- 1 root tty       4, 27 Sep 19 07:26 /dev/tty27
crw--w---- 1 root tty       4, 28 Sep 19 07:26 /dev/tty28
crw--w---- 1 root tty       4, 29 Sep 19 07:26 /dev/tty29
crw--w---- 1 root tty       4,  3 Sep 19 07:26 /dev/tty3
crw--w---- 1 root tty       4, 30 Sep 19 07:26 /dev/tty30
crw--w---- 1 root tty       4, 31 Sep 19 07:26 /dev/tty31
crw--w---- 1 root tty       4, 32 Sep 19 07:26 /dev/tty32
crw--w---- 1 root tty       4, 33 Sep 19 07:26 /dev/tty33
crw--w---- 1 root tty       4, 34 Sep 19 07:26 /dev/tty34
crw--w---- 1 root tty       4, 35 Sep 19 07:26 /dev/tty35
crw--w---- 1 root tty       4, 36 Sep 19 07:26 /dev/tty36
crw--w---- 1 root tty       4, 37 Sep 19 07:26 /dev/tty37
crw--w---- 1 root tty       4, 38 Sep 19 07:26 /dev/tty38
crw--w---- 1 root tty       4, 39 Sep 19 07:26 /dev/tty39
crw--w---- 1 root tty       4,  4 Sep 19 07:26 /dev/tty4
crw--w---- 1 root tty       4, 40 Sep 19 07:26 /dev/tty40
crw--w---- 1 root tty       4, 41 Sep 19 07:26 /dev/tty41
crw--w---- 1 root tty       4, 42 Sep 19 07:26 /dev/tty42
crw--w---- 1 root tty       4, 43 Sep 19 07:26 /dev/tty43
crw--w---- 1 root tty       4, 44 Sep 19 07:26 /dev/tty44
crw--w---- 1 root tty       4, 45 Sep 19 07:26 /dev/tty45
crw--w---- 1 root tty       4, 46 Sep 19 07:26 /dev/tty46
crw--w---- 1 root tty       4, 47 Sep 19 07:26 /dev/tty47
crw--w---- 1 root tty       4, 48 Sep 19 07:26 /dev/tty48
crw--w---- 1 root tty       4, 49 Sep 19 07:26 /dev/tty49
crw--w---- 1 root tty       4,  5 Sep 19 07:26 /dev/tty5
crw--w---- 1 root tty       4, 50 Sep 19 07:26 /dev/tty50
crw--w---- 1 root tty       4, 51 Sep 19 07:26 /dev/tty51
crw--w---- 1 root tty       4, 52 Sep 19 07:26 /dev/tty52
crw--w---- 1 root tty       4, 53 Sep 19 07:26 /dev/tty53
crw--w---- 1 root tty       4, 54 Sep 19 07:26 /dev/tty54
crw--w---- 1 root tty       4, 55 Sep 19 07:26 /dev/tty55
crw--w---- 1 root tty       4, 56 Sep 19 07:26 /dev/tty56
crw--w---- 1 root tty       4, 57 Sep 19 07:26 /dev/tty57
crw--w---- 1 root tty       4, 58 Sep 19 07:26 /dev/tty58
crw--w---- 1 root tty       4, 59 Sep 19 07:26 /dev/tty59
crw--w---- 1 root tty       4,  6 Sep 19 07:26 /dev/tty6
crw--w---- 1 root tty       4, 60 Sep 19 07:26 /dev/tty60
crw--w---- 1 root tty       4, 61 Sep 19 07:26 /dev/tty61
crw--w---- 1 root tty       4, 62 Sep 19 07:26 /dev/tty62
crw--w---- 1 root tty       4, 63 Sep 19 07:26 /dev/tty63
crw--w---- 1 root tty       4,  7 Sep 19 07:26 /dev/tty7
crw--w---- 1 root tty       4,  8 Sep 19 07:26 /dev/tty8
crw--w---- 1 root tty       4,  9 Sep 19 07:26 /dev/tty9
crw--w---- 1 root tty     204, 64 Sep 19 08:08 /dev/ttyAMA0
crw------- 1 root root      5,  3 Sep 19 07:26 /dev/ttyprintk
crw-rw---- 1 root dialout   4, 64 Sep 19 07:26 /dev/ttyS0


Danke für Deine Hilfe
FHEM auf Raspberry, Raspian Jessy, SSC von Busware, TSCUL 0.29

Wernieman

Du hast recht .. beim Pi sind die Rechte von tty wirklich so komisch ...

Da müstest Du Dir eine UDEv-Rule bauen .. sorry, aber habe heute keine zeit dafür
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Christophe

Danke für Deine Hilfe, jetzt weiss ich wenigstens wo ich weitersuchen muss.

Grüsse aus der Schweiz

Christophe
FHEM auf Raspberry, Raspian Jessy, SSC von Busware, TSCUL 0.29

Christophe

Mein Problem ist gelöst:
Im raspi-config war das Terminal eingeschaltet, was die die Zugriffsrechte immer wieder zurückgesetzt hat.

Danke nochmals für die Hilfe.

Grüsse aus der Schweiz

Christoph
FHEM auf Raspberry, Raspian Jessy, SSC von Busware, TSCUL 0.29