Opstart / Login
Source: Download script
Last Updated: 11. September 2025 by Agnete Moos (agms@sonderborg.dk)
Click to see the source code
#! /usr/bin/env sh
set -x
header() {
MSG=$1
printf "\n\n\n%s\n\n\n" "### $MSG ###"
}
text() {
MSG=$1
printf "\n%s\n" "### $MSG ###"
}
header "ASSORTED DEBUGGING INFORMATION RELATED TO LIGHTDM:"
text "To eliminate it as a cause: Check if the HDD is full"
df -h
text "To eliminate it as a cause: Check mutability status of /home/user/"
lsattr -a /home/user/
text "CHECK IF USER (BORGER) IS EXPIRED OR NOT"
chage -l user
text "CHECK WHICH GROUPS USER (BORGER) IS IN - SPECIFICALLY RELEVANT: IS IT IN nopasswdlogin?"
groups user
text "The installed version of lightdm"
lightdm --version
text "List the running sessions, via dm-tool"
dm-tool list-seats
header "LIGHTDM MAIN CONFIG FILE CONTAINS THE FOLLOWING"
cat /etc/lightdm/lightdm.conf
header "SEE CONTENTS OF FILES UNDER LIGHTDM.CONF.D, IN CASE THERE ARE ANY"
cat /etc/lightdm/lightdm.conf.d/*
header "CHECK FOR THE EXISTENCE OF SOME OF LIGHTDM'S FILES, FX. TO VERIFY PERMISSIONS"
# shellcheck disable=SC2010
ls -l /var/lib/ | grep lightdm
# Exclude repetitive current dir and parent dirs from ls listing though
# shellcheck disable=SC2010
ls -laR /var/lib/lightdm* | grep -v " \."
header "LOG FILES"
text "The log files available in the lightdm log dir"
ls -l /var/log/lightdm
header "LOG OUTPUT FROM LIGHTDM ITSELF"
text "lightdm.log:"
tail --lines 200 /var/log/lightdm/lightdm.log
text "seat0-greeter.log:"
tail --lines 200 /var/log/lightdm/seat0-greeter.log
text "x-0.log:"
tail --lines 200 /var/log/lightdm/x-0.log
header "LOG OUTPUT FROM XORG"
tail --lines 500 /var/log/Xorg.0.log
# journalctl --since $(date...) | grep lightdm # the date line should perhaps be the day before, in the format 2023-11-23
header "CHECK THE 500 LAST LINES OF AUTH.LOG - BECAUSE THIS IS WHERE PAM LOGS"
tail --lines 500 /var/log/auth.log
Beskrivelse
Indsamler information om bl.a. LightDM, som er den login-manager OS2borgerPC benytter på nuværende tidspunkt.
Informationen skrives til job-logoutputtet.