Skip to content

🐛 | Missing entry for user "pi" in sudoers? #2522

@josefmoellers

Description

@josefmoellers

Version

2.8.0 - 5044358

Branch

master

OS

Raspbian GNU/Linux 11 (bullseye)

Pi model

Raspberry Pi Zero W Rev 1.1

Hardware

  • RC522 card reader
    • HifiBerry MiniAmp 1.0

What happened?

When looking at the web page, no cover was shown.
Further analysis revealed that settings/Latest_Folder_Played was empty.
This was imho due to this line in scripts/playout_controls.sh:

937         sudo echo ${FOLDER} > ${PATHDATA}/../settings/Latest_Folder_Played

First of all: echo is a shell-builtin, so running it as root has no effect, however, attempting to run it as root will fail and the echo will not be done! Second: the output redirection is done as the current user which is afaics user pi!
I added a file /etc/sudoers/pi with contents pi ALL=(ALL) NOPASSWD: ALL

As a second consequence, shutting the Phoniebox down using a button did not work for the same reason.

Logs

install-jukebox.sh_20250518_123838.log

Analytics_AfterInstallScript.log

Configuration

No response

More info

I am a (now retired) CS engenieer, so I may have thought to be more clever that it should have been necessary and thus may have made errors during installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    buglegacy_v2Issues, discussions and PRs related to Version 2.xneeds triage

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions