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

block by prompt "[sudo] password for kodi" #49

Open
jujumo opened this issue Apr 14, 2024 · 5 comments
Open

block by prompt "[sudo] password for kodi" #49

jujumo opened this issue Apr 14, 2024 · 5 comments

Comments

@jujumo
Copy link

jujumo commented Apr 14, 2024

I was using kodi stand alone on raspi with bullseye. It was working like a charm.

I re-installed a brand new "bookworm" system, and now I am stuck with this prompt on the screen:
"[sudo] password for kodi"

I made sure boot preference is set to a graphical target.
I can find a file named "/etc/sudoers.d/020_kodi"
I can manually launch kodi in userspace through ssh.

Any idea of whats going on ?

@graysky2
Copy link
Owner

graysky2 commented Apr 15, 2024 via email

@graysky2
Copy link
Owner

Are you trying to use it as its own in your graphical target by the way?

@jujumo
Copy link
Author

jujumo commented Apr 15, 2024

Thanks for pointing the closed issue and the former documentation.
Sorry for delay, I wanted to be able to test before answering.

The ticket you pointed gave me the solution.
The problem was indeed:
sudo openvt -sw -- su -c ${KODI_BINARY} $SAVED_ARGS
in /usr/bin/kodi

I manually patched it to:
${KODI_BINARY} $SAVED_ARGS
(instead of using the one in the ticket), since kodi probably evolved since then.
I am wondering if its a good solution though.

If this "sudo" command is there, its probably for a reason.
I see that CEC service may also require sudo.
So I am wondering if there is any mean to add kodi user to sudoers (or use another username that is in sudoers) with password prompt. But I am no expert and cant tell whats best.

Thanks again for the lead.
May be it worth mentioning with the associated error message in the RPi section of the documentation (master branch).

Best,
JuMo

@jujumo
Copy link
Author

jujumo commented Apr 16, 2024

may be related to that:
"However, I've found a misconfiguration: Kodi asked superuser password with normal users (including video group). I followed the error, and now it is used openvt, instead of fgconsole."
-- https://forums.raspberrypi.com/viewtopic.php?t=357693#p2146651

i am investigating

@graysky2
Copy link
Owner

Please send through a PR against the README for bookworm. I do not use it/cannot test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants