Re: Assistance Needed with 'loginctl list-users' Command Display Issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
#
# This file is included from other service-specific PAM config files,
# and should contain a list of modules that define tasks to be performed
# at the start and end of sessions of *any* kind (both interactive and
# non-interactive).
#

# here are the per-package modules (the "Primary" block)
session [default=1] pam_permit.so
# here's the fallback if no module succeeds
session requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
session required pam_permit.so
# and here are more per-package modules (the "Additional" block)
session required pam_unix.so
session optional pam_systemd.so


Thank you,
-Sangeetha

On Tue, Feb 13, 2024 at 11:22 AM Mantas Mikulėnas <grawity@xxxxxxxxx> wrote:
Also, if you're using a terminal that doesn't recognize OSCs (it should just ignore unknown ones), export SYSTEMD_URLIFY=0 to disable the hyperlink feature that's making a mess out of systemctl output.

On Tue, Feb 13, 2024, 06:53 Sangeetha Elumalai <sangeethaeng2017@xxxxxxxxx> 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


[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux