[systemd-devel] Assistance Needed with 'loginctl list-users' Command Display Issue
Mantas Mikulėnas
grawity at gmail.com
Tue Feb 13 05:43:58 UTC 2024
You need to make sure the PAM configuration for whichever service you're
logging in through includes pam_systemd.so in the 'session' group. Check
/etc/pam.d on other distributions. (For tty logins it's /etc/pam.d/login,
but usually it's indirect via /etc/pam.d/common-session or something along
those lines.)
On Tue, Feb 13, 2024, 06:53 Sangeetha Elumalai <sangeethaeng2017 at gmail.com>
wrote:
> Hi,
>
> The* 'loginctl list-users'* command isn't displaying the user list. I
> would appreciate any suggestions on resolving this issue. Do I need to
> enable any specific service for this functionality?
>
> Here are the logs:
> ```
> # who
> root ttyS0 Feb 15 19:12
> #
>
>
> # loginctl list-users
> No users.
> #
>
> # loginctl list-sessions
> No sessions.
> #
>
> # systemctl status systemd-logind
> �● systemd-logind.service - User Login Management
> Loaded: loaded
> (8;;file://beagleboneblack/lib/systemd/system/systemd-logind.service/lib/systemd/system/systemd-logind.service8;;;
> static)
> Active: active (running) since Wed 2023-02-15 19:12:10; 11 months 27
> days >
> Docs: 8;;man:sd-login(3)man:sd-login(3)8;;
>
> 8;;man:systemd-logind.service(8)man:systemd-logind.service(8)8;;
> 8;;man:logind.conf(5)man:logind.conf(5)8;;
>
> 8;;man:org.freedesktop.login1(5)man:org.freedesktop.login1(5)8;;
> Main PID: 135 (systemd-logind)
> Status: "Processing requests..."
> Tasks: 1 (limit: 1060)
> Memory: 632.0K
> CPU: 482ms
> CGroup: /system.slice/systemd-logind.service
> �└�─135 /lib/systemd/systemd-logind
>
> Feb 15 19:12:06 beagleboneblack systemd[1]: Starting
> systemd-logind.service...
> Feb 15 19:12:10 beagleboneblack systemd-logind[135]: New seat seat0.
> Feb 15 19:12:10 beagleboneblack systemd[1]: Started systemd-logind.service.
> #
> ```
>
> Thank you,
> -Sangeetha
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240213/c593d9e2/attachment-0001.htm>
More information about the systemd-devel
mailing list