sixfab / Sixfab_QMI_Installer

⛔️ DEPRECATED — Installer for QMI (wwan0) interface for providing internet connection via Quectel modules.
MIT License
9 stars 10 forks source link

none Pi users can run qmi_reconnect.service #9

Open blackbicbiro opened 2 years ago

blackbicbiro commented 2 years ago

Issue with none pi default users. My default users with uid:gid 1000:1000 is not pi it is now Nomad-Maxi Systemd gives me the following errors

Jun 07 18:31:02 rp-cell-test-fabsix sh[670]: Connection down, reconnecting...
Jun 07 18:31:02 rp-cell-test-fabsix sh[670]: sudo: no tty present and no askpass program specified
Jun 07 18:31:02 rp-cell-test-fabsix sudo[3190]: pam_unix(sudo:auth): conversation failed
Jun 07 18:31:02 rp-cell-test-fabsix sudo[3190]: pam_unix(sudo:auth): auth could not identify password for [Nomad-Maxi]

changed User=Nomad-Maxi in the .service file. but still getting the same issue

Anyone seen this before?

rmorgans commented 1 year ago

You should make sure your sudo is passwordless, so change the old

pi@ss1:~$ sudo cat /etc/sudoers.d/010_pi-nopasswd 
pi ALL=(ALL) NOPASSWD: ALL

to something like:

pi@ss1:~$ sudo cat /etc/sudoers.d/010_Nomad-Maxi-nopasswd 
Nomad-Maxi ALL=(ALL) NOPASSWD: ALL