[systemd-devel] Assistance Needed with 'loginctl list-users' Command Display Issue

Sangeetha Elumalai sangeethaeng2017 at gmail.com
Tue Feb 13 14:33:37 UTC 2024


Hi,

Thank you for your help.
After copying pam_systemd.so to the /usr/lib/security location, the issue
got resolved.

Here are the steps:

```
cp /lib/security/pam_systemd.so /usr/lib/security/


$ loginctl list-users
UID USER LINGER
  0 root no

1 users listed.
$ loginctl list-sessions
SESSION UID USER SEAT TTY
     c1   0 root      ttyS0

1 sessions listed.
$

```

On Tue, Feb 13, 2024 at 7:48 PM Sangeetha Elumalai <
sangeethaeng2017 at gmail.com> wrote:

> Yes, I confirmed this file used by PAM service.
>
> On Tue, Feb 13, 2024 at 6:18 PM Andrei Borzenkov <arvidjaar at gmail.com>
> wrote:
>
>> On 13.02.2024 09:41, Sangeetha Elumalai wrote:
>> > Hi,
>> >
>> > I modified the following file, but I am still facing the issue.
>> >
>> > # cat common-session
>> > #
>> > # /etc/pam.d/common-session - session-related modules common to all
>> services
>> > #
>>
>> And did you verify that this file is actually included by the PAM
>> service you are using to login?
>>
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240213/a934848a/attachment.htm>


More information about the systemd-devel mailing list