Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #163: no "any" key on keyboard


comp / comp.os.linux.misc / Re: systemd-logind on Linux servers - to be or not to be?

SubjectAuthor
* systemd-logind on Linux servers - to be or not to be?Juancho
`* Re: systemd-logind on Linux servers - to be or not to be?Lawrence D'Oliveiro
 `- Re: systemd-logind on Linux servers - to be or not to be?Juancho

1
Subject: systemd-logind on Linux servers - to be or not to be?
From: Juancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 1 Nov 2024 15:21 UTC
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: eternal@notreally.com (Juancho)
Newsgroups: comp.os.linux.misc
Subject: systemd-logind on Linux servers - to be or not to be?
Date: Fri, 1 Nov 2024 16:21:15 +0100
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <b88fvk-1u6.ln1@intheattic.eternal-september.org>
Injection-Date: Fri, 01 Nov 2024 16:21:25 +0100 (CET)
Injection-Info: dont-email.me; posting-host="19c4d7b9b86850028f237a6184110ad1";
logging-data="3468649"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/8JUuQ90G60RVXOxeXn4WuNqUTHLjoeh8="
User-Agent: slrn/0.9.8.1pl1 (Debian)
Cancel-Lock: sha1:RU6EtUzy2racxAM+Umb5loYrYlE=
View all headers

A couple of years ago, I was assigned to set up a new SecureFTP server,
and I went with Ubuntu for the task (by the way, I was new to the
Ubuntu/Debian realm, as I was a CentOS refugee). That system so far has
been working fine, totally rock solid (it's used for EDI data exchange
in a B2B setting).

What I did was I started from the Ubuntu 22.04 live-server ISO image,
and during install I chose the "Ubuntu Server (minimized)" option. That
produced a non-GUI system, which I then proceeded to duly debloat further,
so I removed snapd, netplan.io, and cloud-init packages.

Now, some days ago I've been tasked with deploying a Redmine instance,
and I went with a turn-key solution done by Bitnami, which is based on
Debian 12 and distributed as an OVA file for VirtualBox/VMware. And this
was very fast, easy and painless.

OK, so I was poking around this Debian 12 install, and comparing the
running processes with my debloated Ubuntu Server from a couple of
years ago, and I saw this Debian 12 is not running systemd-logind nor
dbus-daemon, while my Ubuntu Server 22.04 certainly is.

The only practical difference I can see is that the command "loginctl
session-status" works in that Ubuntu Server 22.04 install, but does not
work ("Failed to connect to bus: No such file or directory") in that
Debian 12 install. Other than that, both systems run the same to my
eyes.

Therefore, my question for more experienced Linux gurus, is this: Does
systemd-logind provide any value in a Linux server setup?

It's good security practice to minimize vectors of attack, and I guess
that avoiding to run dbus-daemon and systemd-logind may be a nice thing
to do in my next Ubuntu-based server. How off-base I am in that
thinking?

Thank you for your input!

-Juancho.

Subject: Re: systemd-logind on Linux servers - to be or not to be?
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 1 Nov 2024 20:40 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: systemd-logind on Linux servers - to be or not to be?
Date: Fri, 1 Nov 2024 20:40:03 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <vg3eb3$3d77d$1@dont-email.me>
References: <b88fvk-1u6.ln1@intheattic.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 01 Nov 2024 21:40:04 +0100 (CET)
Injection-Info: dont-email.me; posting-host="bd791c98b2a7ceb7baae313a68ac07cd";
logging-data="3579117"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18r8hcwonKI3GRjzO+yeLO4"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:7Lz4IEbHhFxKIhg9GT1uJDicwP4=
View all headers

On Fri, 1 Nov 2024 16:21:15 +0100, Juancho wrote:

> The only practical difference I can see is that the command "loginctl
> session-status" works in that Ubuntu Server 22.04 install, but does not
> work ("Failed to connect to bus: No such file or directory") in that
> Debian 12 install. Other than that, both systems run the same to my
> eyes.

Debian certainly has the option to run systemd-logind. For example,
loginctl does work and print useful results on my Debian Unstable
setup.

> Therefore, my question for more experienced Linux gurus, is this: Does
> systemd-logind provide any value in a Linux server setup?

As is usual with systemd, it tends to provide functionality in places
where other alternatives don’t even have places.

<https://www.freedesktop.org/software/systemd/man/latest/systemd-logind.html>
<https://www.freedesktop.org/software/systemd/man/latest/logind.conf.html>

Subject: Re: systemd-logind on Linux servers - to be or not to be?
From: Juancho
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 13 Nov 2024 23:25 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: eternal@notreally.com (Juancho)
Newsgroups: comp.os.linux.misc
Subject: Re: systemd-logind on Linux servers - to be or not to be?
Date: Thu, 14 Nov 2024 00:25:18 +0100
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <u3pf0l-e9l.ln1@intheattic.eternal-september.org>
References: <b88fvk-1u6.ln1@intheattic.eternal-september.org> <vg3eb3$3d77d$1@dont-email.me>
Injection-Date: Thu, 14 Nov 2024 01:08:04 +0100 (CET)
Injection-Info: dont-email.me; posting-host="f8b206dd016321fda3d7097010734e49";
logging-data="2591854"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ke1skXewOCknva5RZcoeeuErjo5PnqNk="
User-Agent: slrn/0.9.8.1pl1 (Debian)
Cancel-Lock: sha1:ITkjuyyYLlgWA26qA+5W/HLJcr8=
View all headers

On 2024-11-01, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Fri, 1 Nov 2024 16:21:15 +0100, Juancho wrote:
>
>> The only practical difference I can see is that the command "loginctl
>> session-status" works in that Ubuntu Server 22.04 install, but does not
>> work ("Failed to connect to bus: No such file or directory") in that
>> Debian 12 install. Other than that, both systems run the same to my
>> eyes.
>
> Debian certainly has the option to run systemd-logind. For example,
> loginctl does work and print useful results on my Debian Unstable
> setup.

Yes, I know that a default Debian install brings in systemd-logind.

But I've found that the "bitnami stack" turn-key OVAs/VMs [1], which
currently are Debian 12 based, come without systemd-logind. And I am
therefore wondering: Does systemd-logind provide any value in a Linux
server setup? What is the best practice regarding systemd-logind in
servers?

[1] https://bitnami.com/stacks

1

rocksolid light 0.9.8
clearnet tor