You are not logged in.

#1 2015-01-16 08:55:04

nexusdk
Member
Registered: 2015-01-16
Posts: 2

loginctl not showing any sessions, can't shutdown [SOLVED]

Good day

I am in the middel of setting up an Arch box when I realized I can no longer shutdown or reboot as a regular user.
I have fiddled with just about everything, so I am not shure where the problem started. It could be pam or some systemd service problem.
We use LDAP for user accounts and a sshfs mount using pam_mount.so for home folders.

Because of the problem, when an user selects reboot in the xfce4 desktop environment, the system just logs the user out to xdm.
The problem persists when logging in via a tty, so I don't think X, xdm or the xfce4 DE is the problem.

I modified a few systemd service files in order to get the systemd-networkd-wait-online.service to finish before a hostname.service that sets the hostname to show the IP address which in turn needs to finish before xdm starts.

My deadline for this "lab image" is Wednesday and I have no idea where to start looking for the problem.
This is the first time I am posting to a forum for help. Please be patient with me.

Thank you and kind regards.

Last edited by nexusdk (2015-01-16 09:31:15)

Offline

#2 2015-01-16 09:02:33

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: loginctl not showing any sessions, can't shutdown [SOLVED]

You will need to supply more information: journal output etc.

Not a Sysadmin issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-01-16 09:28:52

nexusdk
Member
Registered: 2015-01-16
Posts: 2

Re: loginctl not showing any sessions, can't shutdown [SOLVED]

Found my problem.
/etc/pam.d/system-auth needed:

session    optional     pam_loginuid.so
-session   optional     pam_systemd.so

Offline

Board footer

Powered by FluxBB