Re: systemd sessions, su -l, and access to /dev/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Nov 23, 2012 12:21 AM, "MSal" <msal@xxxxxxxxxxx> 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.

HTH,

Tom


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux