Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Das addon Verzeichnis redmatic gehört nicht root #16

Closed
FrodoVDR opened this issue Jun 12, 2018 · 8 comments
Closed

Das addon Verzeichnis redmatic gehört nicht root #16

FrodoVDR opened this issue Jun 12, 2018 · 8 comments
Labels
🐛bug Something isn't working

Comments

@FrodoVDR
Copy link

Bei der Installation von zusätzlichen nodes kommt die Fehlermeldung das die Berechtigung nicht passt.
Nach dem ich die Benutzer und Gruppenrechte des Verzeichniss /usr/local/addons/redmatic von 2000:2000 auf root:root gesetzt habe ist der Fehler behoben.
chown -R root:root /usr/local/addons/redmatic

@hobbyquaker
Copy link
Member

Hmm, das ist seltsam, ist mir bei meinen Tests bisher nicht untergekommen. Kannst Du mal checken welchen Besitzer/Gruppe /usr/local/addons bei Dir hat?

@hobbyquaker hobbyquaker added 🐛bug Something isn't working 🤔to be clarified labels Jun 12, 2018
@FrodoVDR
Copy link
Author

FrodoVDR commented Jun 12, 2018

Das Verzeichnis gehört root:root

/usr/local/addons
# ls -la
total 40
drwxr-xr-x   10 root     root          4096 Jun 11 11:15 .
drwxr-xr-x    8 root     root          4096 May 28 18:28 ..
drwxr-xr-x    4 root     root          4096 Apr 20 20:40 ccu-historian
drwxr-xr-x    3 root     root          4096 Feb  4 18:01 check_mk_agent
drwxr-xr-x    5 root     root          4096 Jun 12 20:55 cuxd
drwx------    2 root     root          4096 Apr 10 10:23 netatmo
drwxr-xr-x   10 2000     2000          4096 Jun 11 18:02 redmatic
drwxr-xr-x    6 root     root          4096 Jun  1 22:24 rmupdate

Dein Addon erhält selbst nach einem Update die falschen Rechte.
Eventuell liegt es daran das ich sowohl die Installation als auch das Update über das addon rmupdate (https://github.com/j-a-n/raspberrymatic-addon-rmupdate) durchgeführt habe.

@hobbyquaker
Copy link
Member

Eventuell liegt es daran das ich sowohl die Installation als auch das Update über das addon rmupdate durchgeführt habe.

Ok, ich denke das ist der entscheidende Hinweis. Werde das mal testen.

@FrodoVDR
Copy link
Author

Gerade selbst getestet, wenn ich Dein addon über die Homematic Oberfläche installiere gehört alles root, nehme ich rmupdate gehört es 2000 .

@jens-maus
Copy link

@hobbyquaker Du solltest in deinem build.sh beim zusammenpacken des tar.gz explizit root als Nutzer aller Files setzen.

Vergleiche

https://github.com/jens-maus/hm-watchdog/blob/master/generate_img.sh#L21
mit
https://github.com/hobbyquaker/RedMatic/blob/master/build.sh#L129

Zusätzlich sollte in der Tat Jan im rmupdate addon einbauen das das addon Paket auch immer als root:root ausgepackt wird.

@j-a-n
Copy link

j-a-n commented Jun 12, 2018

Das Problem sollte durch die Version 1.12.3 von rmupdate gelöst sein.

@hobbyquaker
Copy link
Member

Danke Jan und Jens!

@jens-maus
Copy link

@hobbyquaker Du solltest aber trotzdem das tar.gz mit --owner=root --group=root zusammenpacken lassen ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Development

No branches or pull requests

4 participants