Page 1 sur 1

Message : No passwd entry for user 'vil1driver'

Publié : 07 juin 2018, 11:22
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 ?

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

Publié : 07 juin 2018, 18:16
par Neutrino
Bonjour,

Tu n'aurais pas modifié ton fichier domoticz.sh ou recopié bêtement depuis un tuto ?

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

Publié : 07 juin 2018, 19:44
par Jeff
Il est partout ce Vil1driver ;)
Fait un ls -al de ton dossier domoticz pour voir les group et user !

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

Publié : 08 juin 2018, 11:28
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.
;)

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

Publié : 08 juin 2018, 11:40
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 ?
;)

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

Publié : 08 juin 2018, 13:25
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é 6078 fois

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

Publié : 09 juin 2018, 08:12
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/

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

Publié : 09 juin 2018, 08:20
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

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

Publié : 09 juin 2018, 08:27
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

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

Publié : 20 juin 2018, 16:10
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" &')
;)