Hello,
In /etc/login.conf I have the following login class:
It allows my main user unlimited memory locking, as recommended by audio/jack.
This works fine from a command line login, and from a X session started by
As expected,
But that doesn't work if I log in from LightDM.
In that case,
LightDM seems not to care about login classes. Is there a way to change that?
I tried various settings in /usr/local/etc/lightdm/lightdm.conf:
* running LightDM as my user instead of user "lightdm" -> doesn't work (I can't login)
* running LightDM as root -> works but no effect
*
*
*
LightDM's default (131072k) is what is defined for login class "daemon":
If I set
I tried giving the "lightdm" user the same login class as me: no effect, it still follows the "daemon" limits (which makes sense given that lightdm is a nologin user).
I also tried setting a lower limit for my login class while class "daemon" had unlimited: I got unlimited from my X session too.
So it seems the system limits a user gets while logging in from LightDM are invariably what LightDM itself is allowed, and that's what's defined in class "daemon". Not really convenient, and rather broken design. If there's a way to set per-user limits while using LightDM, please let me know! Otherwise I think it's a good reason to avoid using LightDM on FreeBSD.
I'll try other display managers to compare.
In /etc/login.conf I have the following login class:
Code:
audio:\
:memorylocked=unlimited:
This works fine from a command line login, and from a X session started by
startx
.As expected,
ulimit -l
returns unlimited.But that doesn't work if I log in from LightDM.
In that case,
ulimit -l
returns 131072.LightDM seems not to care about login classes. Is there a way to change that?
I tried various settings in /usr/local/etc/lightdm/lightdm.conf:
* running LightDM as my user instead of user "lightdm" -> doesn't work (I can't login)
* running LightDM as root -> works but no effect
*
lock-memory=true
-> no effect*
user-authority-in-system-dir=true
-> no effect*
dbus-service=false
-> no effectLightDM's default (131072k) is what is defined for login class "daemon":
Code:
daemon:\
:path=/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin:\
:mail@:\
:memorylocked=128M:\
:tc=default:
memorylocked=unlimited
there, I do get unlimited locking in my X session, but I don't think it's a good idea to give all daemons that privilege.I tried giving the "lightdm" user the same login class as me: no effect, it still follows the "daemon" limits (which makes sense given that lightdm is a nologin user).
I also tried setting a lower limit for my login class while class "daemon" had unlimited: I got unlimited from my X session too.
So it seems the system limits a user gets while logging in from LightDM are invariably what LightDM itself is allowed, and that's what's defined in class "daemon". Not really convenient, and rather broken design. If there's a way to set per-user limits while using LightDM, please let me know! Otherwise I think it's a good reason to avoid using LightDM on FreeBSD.
I'll try other display managers to compare.