[arch-general] systemd sessions, su -l, and access to /dev/
teg at jklm.no
Sat Nov 24 13:00:10 EST 2012
On Nov 23, 2012 12:21 AM, "MSal" <msal at tormail.org> wrote:
> I asked about this in the forum. But it looks like this is a better
> place to discuss systemd-related issues.
> If I login to user1 or user2 then try to play audio which requires
> access to /dev/snd/* , proper access to the logged in user is set by
> the session and everything works correctly.
> But, if I login to user1 then su to user2, audio wouldn't work because
> access permissions are assigned to the session user only (user1).
> Any idea how to fix this issue?
Could you elaborate a bit on what you are trying to do? (there might be a
better way without using 'su'.
The behaviour you are getting is by design, so there is nothing really to
fix. However, you can of course make the system behave the way you want:
Either, assign your devices to the audio group and the same with your users.
Or add systemd_pam to the su pam file. This will create a new session for
you when you use su and should therefore adjust the ACLs accordingly.
More information about the arch-general