On 10/22/19 9:21 AM, Pierre Labastie via blfs-dev wrote:


On 22/10/2019 00:15, Tim Tassonis via blfs-dev wrote:
On 10/22/19 12:09 AM, Ken Moffat via blfs-dev wrote:
On Mon, Oct 21, 2019 at 10:31:25PM +0200, Tim Tassonis via blfs-dev wrote:
Hi all

I just studied the elogind page, where it says that I should modify
/etc/pam.d/system-session, to include the elogind stuff.

I'm a bit reluctant to do so, as I've got several systems running as servers
and routers, with no graphical user interface and no dbus present.

As I understand it, elogind is only required for the gui part, so would it
not be possible to only include


session  required    pam_loginuid.so
session  optional    pam_elogind.so

to the display manager pam config?

I agree it isn't needed for a server where xorg is not running, but
I'm not sure what you mean about adding it to the display manager
pam config : it is needed even for just using startx.


Ok, if you boot into runlevel 3 and then use startx, your login is done on the console, then you'll need it probably.

But if I'm running runlevel 5, the first login is done by the display manager, so I assume that's the moment elogind pam kicks in. There is no previous call to pam in runlevel 5.

Actually, I am not sure I understand what your problem is. On servers with no dbus, you shouldn't have elogind either (the accesses to elogind are made through the message bus). Now, on a machine where you have a gui login, there are two cases: - xorg-server is suid root: the dm can launch an X session for a user without needing anything else. - xorg-server runs as user: either consolekit or elogind is needed for the DM to launch a session for a user (note that we have never configured the DMs to use pam+consolekit in previous versions of blfs, since xorg-server was suid root anyway).

But I do not understand the relation between your machine with gui login, and your servers with no dbus...

The relation simply is that I would like to have the same /etc/pam.d/system-session on both machines, but it really is not that important, I could work around this by adding the lines only on my laptops.

Bye
Tim
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to