Message : No passwd entry for user 'vil1driver'

Forum dédié aux problématiques concernant les scripts pour DomoticZ.
Entourez votre code et les logs avec les balises nommées code grâce au bouton <\>.
Répondre
Doudy
Messages : 457
Inscription : 07 mai 2016, 17:23

Message : No passwd entry for user 'vil1driver'

Message par Doudy »

Bonjour,

Lorsque je fais sudo service domoticz.sh status
j'obtiens ceci :

pi@RASPBERRYPI:~ $ sudo service domoticz.sh status
● domoticz.service - LSB: Home Automation System
Loaded: loaded (/etc/init.d/domoticz.sh)
Active: active (running) since mer 2018-06-06 08:43:28 CEST; 1 day 2h ago
Process: 565 ExecStart=/etc/init.d/domoticz.sh start (code=exited, status=0/SUCCESS)
CGroup: /system.slice/domoticz.service
└─1108 /home/pi/domoticz/domoticz -daemon -www 8098 -sslwww 443

jun 06 11:09:00 RASPBERRYPI su[28629]: No passwd entry for user 'vil1driver'
jun 06 11:12:00 RASPBERRYPI su[29978]: No passwd entry for user 'vil1driver'
jun 06 11:12:00 RASPBERRYPI su[29978]: FAILED su for vil1driver by root
jun 06 11:12:00 RASPBERRYPI su[29978]: - ??? root:vil1driver
jun 06 11:14:00 RASPBERRYPI su[30670]: No passwd entry for user 'vil1driver'
jun 06 11:14:00 RASPBERRYPI su[30670]: FAILED su for vil1driver by root
jun 06 11:14:00 RASPBERRYPI su[30670]: - ??? root:vil1driver
jun 06 11:18:00 RASPBERRYPI su[32524]: No passwd entry for user 'vil1driver'
jun 06 11:19:00 RASPBERRYPI su[466]: No passwd entry for user 'vil1driver'
jun 06 11:23:00 RASPBERRYPI su[2277]: No passwd entry for user 'vil1driver'

:?: :shock: :?:
Une idée ?
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Neutrino
Messages : 2662
Inscription : 10 juil. 2015, 15:42
Localisation : Les Herbiers(85)

Re: Message : No passwd entry for user 'vil1driver'

Message par Neutrino »

Bonjour,

Tu n'aurais pas modifié ton fichier domoticz.sh ou recopié bêtement depuis un tuto ?
Ma maison à plein d'IP ! :mrgreen:
SAV Bonjour. Vous avez vidé le cache ?
Jeff
Messages : 1007
Inscription : 17 nov. 2016, 20:54
Localisation : Rennes (35)

Re: Message : No passwd entry for user 'vil1driver'

Message par Jeff »

Il est partout ce Vil1driver ;)
Fait un ls -al de ton dossier domoticz pour voir les group et user !
Version: 2023.1 sur VM Synology, docker Zwave Js UI (Z-stick GEN5, Fibaro...), Zigbeefordomoticz. Nextion RGB Led Screen
Doudy
Messages : 457
Inscription : 07 mai 2016, 17:23

Re: Message : No passwd entry for user 'vil1driver'

Message par Doudy »

Neutrino a écrit :Bonjour,
Tu n'aurais pas modifié ton fichier domoticz.sh ou recopié bêtement depuis un tuto ?
A première vue non.
;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Doudy
Messages : 457
Inscription : 07 mai 2016, 17:23

Re: Message : No passwd entry for user 'vil1driver'

Message par Doudy »

Jeff a écrit :Il est partout ce Vil1driver ;)
Fait un ls -al de ton dossier domoticz pour voir les group et user !
Voici le résultat :

Code : Tout sélectionner

pi@RASPBERRYPI:~/domoticz $ ls -al
total 72060
drwxr-xr-x  9 pi   pi       4096 jun  8 11:30 .
drwxr-xr-x 33 pi   pi       4096 jun  6 08:43 ..
drwxrwxrwx  4 pi   pi       4096 avr 22 08:41 2.4.5-dzVents
drwxr-xr-x 82 pi   pi       4096 avr  5 16:05 Config
-rw-r-----  1 root root      236 jun  8 11:27 domocookie.txt
-rwxrw-rw-  1 pi   pi     507904 mar 14 16:11 domoticz (1).db
-rwxrw-rw-  1 pi   pi   15106048 avr 10 15:57 domoticz (4).db
-rwxrw-rw-  1 pi   pi   16093184 avr 12 10:40 domoticz (5).db
-rwxrw-rw-  1 pi   pi   20877312 jun  8 11:30 domoticz.db
-rwxrw-rw-  1 pi   pi      65536 jun  8 11:32 domoticz.db-shm
-rwxrw-rw-  1 pi   pi   20946112 jun  8 11:32 domoticz.db-wal
-rw-r--r--  1 pi   pi       4427 aoû 29  2017 domoticz.sh
drwxr-xr-x  4 pi   pi       4096 avr  2 16:05 dzVents
-rw-r--r--  1 pi   pi      85641 avr  3 23:05 History.txt
-rw-r--r--  1 pi   pi      35147 aoû 29  2017 License.txt
drwxr-xr-x  2 pi   pi       4096 mai 10 20:00 log
drwxr-xr-x  4 pi   pi       4096 aoû 29  2017 plugins
drwxr-xr-x  9 pi   pi       4096 mai  7 11:18 scripts
-rw-r--r--  1 pi   pi       3414 aoû 29  2017 server_cert.pem
-rwxr-xr-x  1 pi   pi        583 aoû 29  2017 updatebeta
-rwxr-xr-x  1 pi   pi        600 aoû 29  2017 updaterelease
drwxr-xr-x 14 pi   pi       4096 avr 15 04:05 www
Je ne sais pas si cela pourra aider ?
;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
papoo
Messages : 2029
Inscription : 10 janv. 2016, 11:29
Localisation : Limoges (87)
Contact :

Re: Message : No passwd entry for user 'vil1driver'

Message par papoo »

as tu récemment ajouté un script de vil1driver? ou re paramétré ton système? vil1driver n'utilise pas le user pi sur sa machine, il faut donc modifier le ou les scripts faisant appel à l'utilisateur notamment si tu utilise sa bibliothèque de fonctions modules.lua
exemple : https://easydomoticz.com/forum/viewtopi ... 160#p51677
2018-06-08 13_25_02-La bonne température a la bonne heure - Forum Domoticz en français.png
2018-06-08 13_25_02-La bonne température a la bonne heure - Forum Domoticz en français.png (5.35 Kio) Consulté 6081 fois
domoticz beta/RaspBerry PI3 stretch
https://pon.fr github
Doudy
Messages : 457
Inscription : 07 mai 2016, 17:23

Re: Message : No passwd entry for user 'vil1driver'

Message par Doudy »

papoo a écrit :as tu récemment ajouté un script de vil1driver? ou re paramétré ton système? vil1driver n'utilise pas le user pi sur sa machine, il faut donc modifier le ou les scripts faisant appel à l'utilisateur notamment si tu utilise sa bibliothèque de fonctions modules.lua
Oui, mais j'avais modifié en

Code : Tout sélectionner

dofile('/home/pi/domoticz/scripts/lua/modules.lua')
Lorsque je fais un :

Code : Tout sélectionner

pi@RASPBERRYPI:~ $ find . -type f -exec grep vil1driver {} \;
J'obtiens ceci :

Code : Tout sélectionner

su[28629]: No passwd entry for user 'vil1driver'
jun 06 11:09:00 RASPBERRYPI su[28629]: No passwd entry for user 'vil1driver'
jun 06 11:12:00 RASPBERRYPI su[29978]: No passwd entry for user 'vil1driver'
jun 06 11:12:00 RASPBERRYPI su[29978]: FAILED su for vil1driver by root
jun 06 11:12:00 RASPBERRYPI su[29978]: - ??? root:vil1driver
jun 06 11:14:00 RASPBERRYPI su[30670]: No passwd entry for user 'vil1driver'
jun 06 11:14:00 RASPBERRYPI su[30670]: FAILED su for vil1driver by root
jun 06 11:14:00 RASPBERRYPI su[30670]: - ??? root:vil1driver
jun 06 11:18:00 RASPBERRYPI su[32524]: No passwd entry for user 'vil1driver'
jun 06 11:19:00 RASPBERRYPI su[466]: No passwd entry for user 'vil1driver'
jun 06 11:23:00 RASPBERRYPI su[2277]: No passwd entry for user 'vil1driver'
                    .replace("/home/vil1driver/domoticz/scripts/lua/", "");
        url = https://github.com/vil1driver/monitor.git
0000000000000000000000000000000000000000 0657ed27a09c362417efd32e629fcd7edc8ea574 pi <pi@RASPBERRYPI.(none)> 1509346693 +0100      clone: from https://github.com/vil1driver/monitor.git
0000000000000000000000000000000000000000 0657ed27a09c362417efd32e629fcd7edc8ea574 pi <pi@RASPBERRYPI.(none)> 1509346693 +0100      clone: from https://github.com/vil1driver/monitor.git
0000000000000000000000000000000000000000 0657ed27a09c362417efd32e629fcd7edc8ea574 pi <pi@RASPBERRYPI.(none)> 1509346693 +0100      clone: from https://github.com/vil1driver/monitor.git
                    .replace("/home/vil1driver/domoticz/scripts/lua/", "");
grep: ./domoticz/horoscope.xml: Permission non accordée
      os.execute('su - vil1driver -c "/usr/sbin/mosquitto -c /etc/mosquitto/conf.d/monitor.conf -d" &')
grep: ./domoticz/scripts/dzVents/domoticzData.lua: Permission non accordée
grep: ./domoticz/domocookie.txt: Permission non accordée
:?: :shock: :?

Vos lumières me serait bien utile ...
;)

PS : je n'ai pas de dossier

Code : Tout sélectionner

/home/vil1driver/domoticz/scripts/lua/
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
papoo
Messages : 2029
Inscription : 10 janv. 2016, 11:29
Localisation : Limoges (87)
Contact :

Re: Message : No passwd entry for user 'vil1driver'

Message par papoo »

Pour lister l’ensemble fais un sudo find, cela listera l’ensemble des fichiers meme ceux dont la permission a été refusé
Ensuite l’installation de mosquitto semble contenir un chemin d’accès comportant vil1driver ainsi que le système de mise à jour git pour certains scripts
domoticz beta/RaspBerry PI3 stretch
https://pon.fr github
vil1driver
Messages : 5661
Inscription : 30 janv. 2015, 11:07
Localisation : Rennes (35)

Re: Message : No passwd entry for user 'vil1driver'

Message par vil1driver »

Salut
Doudy a écrit :

Code : Tout sélectionner

os.execute('su - vil1driver -c "/usr/sbin/mosquitto -c /etc/mosquitto/conf.d/monitor.conf -d" &')
Aurais tu suivi ceci ?

viewtopic.php?p=33186#p33186
MAJ = VIDER LE CACHE(<-Clicable)
/!\Les mises à jour de Domoticz sont souvent sources de difficultés, ne sautez pas dessus
modules.lua

Un ex domoticzien
Doudy
Messages : 457
Inscription : 07 mai 2016, 17:23

Re: Message : No passwd entry for user 'vil1driver'

Message par Doudy »

vil1driver a écrit :Salut
Doudy a écrit :

Code : Tout sélectionner

os.execute('su - vil1driver -c "/usr/sbin/mosquitto -c /etc/mosquitto/conf.d/monitor.conf -d" &')
Aurais tu suivi ceci ?

viewtopic.php?p=33186#p33186
Yes, c'est bien ça
J'ai suivi bêtement ce que tu avais créé intelligemment.
:oops:
Je suppose que remplace par ceci :

Code : Tout sélectionner

os.execute('su - pi -c "/usr/sbin/mosquitto -c /etc/mosquitto/conf.d/monitor.conf -d" &')
;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Répondre