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 UI
Yes, I confirmed this file used by PAM service.
On Tue, Feb 13, 2024 at 6:18 PM Andrei Borzenkov
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-sess
Hi
I added pam_systemd module in /etc/pam.d/login file.
# cat /etc/pam.d/login
authrequisite pam_nologin.so
authrequired pam_securetty.so
authrequired pam_env.so
authrequired pam_unix.so nullok_secure
account required pam_access.so
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 y
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
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
wrote:
> Hi,
>
> The* 'loginctl list-users'* co
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
thos
On 13.02.2024 07:52, Sangeetha Elumalai 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
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 ttyS0Feb 15 19:12
#
# loginctl list-users
No users.