Dietpi user is not in group audio when enable audio

With a fresh installation of dietpi v8.20.1
Command “aplay -l” using user dietpi with sudo or root shows
card 0: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
But when run that command with dietpi (no root)
No soundcards found

I fix the issue by adding dietpi user to group audio

sudo adduser dietpi audio

Should we do this by default whenever we enable the audio?

something @MichaIng could answer.

1 Like

This is intended. We stopped following the RPi OS example adding the default non-root user to most system groups. On Debian this was never the case, and I am also not sure whether it is still the case on RPi OS since they removed the default user pi, and we also aim to remove the dietpi user in the future. Instead we’ll add a prompt on first login to allow creating a login user, and probably then also (optionally) selecting the system groups to add it to.

1 Like