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

Updated list of groups #377

Closed
wants to merge 1 commit into from
Closed

Updated list of groups #377

wants to merge 1 commit into from

Conversation

christophhagemann
Copy link

User permissions for audio etc. are handled by systemd nowadays, adding user to these groups is no longer recommended and will break user-switching in case of audio.

User permissions for audio etc. are handled by systemd nowadays, adding user to these groups is no longer recommended and will break user-switching in case of audio.
@gmelikov
Copy link
Member

Could you please point at some source with such recommendations?

For example https://wiki.debian.org/Sound still advices to add audio group as troubleshooting.

@christophhagemann
Copy link
Author

Thanks to the pointer to the debian wiki, I'll file a bug there as well. Took me a lot of time to figure out the problem. (If a user is in the audio group, other user can see no sound device until the audio-group user logs out.) Documented here:
https://wiki.ubuntu.com/Audio/TheAudioGroup

The system doesn't add new users to these groups as well:

$ adduser testuser
$ groups testuser
testuser : testuser users

Audio, plugdevices, cdrom etc. work.

Best regards,
Christoph

BTW: I just set up my machine with native zfs per-user encrypted home with automatic unlock on login and lock on logout (via systemd and PAM). If you'd like to include this variant in your guide, I'd take the time to write up my steps.

@rlaager
Copy link
Member

rlaager commented Jan 28, 2023

BTW: I just set up my machine with native zfs per-user encrypted home with automatic unlock on login and lock on logout (via systemd and PAM). If you'd like to include this variant in your guide, I'd take the time to write up my steps.

I am definitely interested in that.

@rlaager
Copy link
Member

rlaager commented Jan 28, 2023

I just installed Debian 11 in a VM using the graphical installer. It put the user in the following groups: $username cdrom floppy audio dip video plugdev netdev bluetooth scanner

I was able to play audio. I added another user. I put that user in the audio group. I did "Switch User" in the GUI to switch to that second user. I was able to play audio.

I logged out of the second user. I removed that user from the audio group. I switched back to that user in the GUI. I was able to play audio.

So it seems that being in the audio group is not necessary, but I cannot reproduce that it is harmful, and the installer is still putting the initial user into it.

@christophhagemann
Copy link
Author

christophhagemann commented Jan 30, 2023 via email

@christophhagemann
Copy link
Author

christophhagemann commented Jan 30, 2023 via email

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

Successfully merging this pull request may close these issues.

3 participants