Permission problem Sense Hat node
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, nodejs, python, raspberry-pi
- Ambito
- embedded-iot
Direzione di ricerca
Inizia da hardware/sensehat/sensehat, in particolare dalla riga 18 collegata, e traccia il modo in cui il nodo Sense Hat avvia sensehat.py. Riproduci il flusso node-red-node-pi-sense-hat su Raspberry Pi OS e controlla i log di autenticazione di sudo. Il lavoro è completato quando il nodo si connette e visualizza le tre linee verticali viola previste senza richiedere un accesso ampio a sudoers.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Which node are you reporting an issue on?
node-red-node-pi-sense-hat
What are the steps to reproduce?
- Install node-red-node-pi-sense-hat
- Use the Sense Hat node (out) in a flow
- Connect the node to inject with [4-6,*,purple]
- Deploy the flow
What happens?
- The Sense Hat node is [disconnected]
- Log shows:
pam_unix(sudo:auth): conversation failed
pam_unix(sudo:auth): auth could not identify password for [nodered] - The Sense Hat LED array is blank
Seems like the node is trying to sudo a certain command and cannot without the user passwd. Since I can't find what the node is trying to access using sudo I can't specify that very command in /etc/sudoers as a NOPASSWD. The current workaround basically gives all access to all and any command to the dedicated user I created named nodered.
What do you expect to happen?
- The Sense Hat node is [connected]
- The Sense Hat LED array shows 3 vertical purple lines
Please tell us about your environment:
- Node-RED version: 3.0
- node.js version: 18
- npm version: 9.5
- Platform/OS: Raspberry Pi OS 64 bit latest
- Browser: Chrome
(Sub-optimal) first workaround
I put this line in /etc/sudoers: nodered ALL=(ALL) NOPASSWD: ALL
Better (current) workaround (March 12)
sudo is not needed when calling the sensehat Python script.
sensehat Python script (Line 18)
Replaced by (no $SUDO):
$python_cmd -u $BASEDIR/sensehat.py $@
My Python installation is pretty much run-of-the-mill (as the configuration of the SenseHat module) and does not require sudo when running the script linked above.
Thanks for your help.
- Lingua principale
- JavaScript
- Stelle
- 1.1k
- Fork
- 612
- Merge medio
- 13h 57m
- PR unite (30g)
- 3
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di node-red/node-red-nodes
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 58/100
node-red/node-red-nodes#1142 · 11 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
node-red/node-red-nodes#1141 · 15 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
node-red/node-red-nodes#1130 · 4 commenti ·
-
dependencies
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
node-red/node-red-nodes#1121 · 5 commenti ·
-
upstream
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
node-red/node-red-nodes#1116 · 5 commenti ·
Tutte le issue di node-red/node-red-nodes
Issue simili
-
agent/quality hive/hosted-available-lke648397-260827-5n31 quality testing
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 78/100
jaegertracing/jaeger-ui#4512 ·
I maintainer di solito rispondono entro 1 giorno
-
feedback simulation workshop
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
githubnext/gh-aw-workshop#3857 ·
I maintainer di solito rispondono entro 2 giorni
-
area-clientside-dartpad
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
quarkusio/extensions#3432 ·
I maintainer di solito rispondono entro 1 giorno