Skip to content

Commit 3beec01

Browse files
author
Marcus Funch
committed
Merge branch 'add_lightdm_debugging_script' into 'master'
LightDM debugging script V2 See merge request os2borgerpc/os2borgerpc-scripts!244
2 parents 933e688 + 3b86668 commit 3beec01

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

common/fejlfinding/lightdm-debugging.sh renamed to common/fejlfinding/login_lightdm_debugging.sh

+24-17
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,31 @@ header "ASSORTED DEBUGGING INFORMATION RELATED TO LIGHTDM:"
1717
text "To eliminate it as a cause: Check if the HDD is full"
1818
df -h
1919

20+
text "CHECK IF USER (BORGER) IS EXPIRED OR NOT"
21+
chage -l user
22+
23+
text "CHECK WHICH GROUPS USER (BORGER) IS IN - SPECIFICALLY RELEVANT: IS IT IN nopasswdlogin?"
24+
groups user
25+
2026
text "The installed version of lightdm"
2127
lightdm --version
2228

2329

30+
header "LIGHTDM MAIN CONFIG FILE CONTAINS THE FOLLOWING"
31+
cat /etc/lightdm/lightdm.conf
32+
33+
header "SEE CONTENTS OF FILES UNDER LIGHTDM.CONF.D, IN CASE THERE ARE ANY"
34+
cat /etc/lightdm/lightdm.conf.d/*
35+
36+
37+
header "CHECK FOR THE EXISTENCE OF SOME OF LIGHTDM'S FILES, FX. TO VERIFY PERMISSIONS"
38+
# shellcheck disable=SC2010
39+
ls -l /var/lib/ | grep lightdm
40+
# Exclude repetitive current dir and parent dirs from ls listing though
41+
# shellcheck disable=SC2010
42+
ls -laR /var/lib/lightdm* | grep -v " \."
43+
44+
2445
header "LOG FILES"
2546

2647
text "The log files available in the lightdm log dir"
@@ -37,21 +58,7 @@ tail --lines 200 /var/log/lightdm/x-0.log
3758
header "LOG OUTPUT FROM XORG"
3859
tail --lines 500 /var/log/Xorg.0.log
3960

61+
# journalctl --since $(date...) | grep lightdm # the date line should perhaps be the day before, in the format 2023-11-23
4062

41-
header "LIGHTDM MAIN CONFIG FILE CONTAINS THE FOLLOWING"
42-
cat /etc/lightdm/lightdm.conf
43-
44-
header "SEE CONTENTS OF FILES UNDER LIGHTDM.CONF.D, IN CASE THERE ARE ANY"
45-
cat /etc/lightdm/lightdm.conf.d/*
46-
47-
48-
header "CHECK FOR THE EXISTENCE OF SOME OF LIGHTDM'S FILES, FX. TO VERIFY PERMISSIONS"
49-
# shellcheck disable=SC2010
50-
ls -l /var/lib/ | grep lightdm
51-
# Exclude repetitive current dir and parent dirs from ls listing though
52-
# shellcheck disable=SC2010
53-
ls -laR /var/lib/lightdm* | grep -v " \."
54-
55-
56-
header "CHECK IF USER (BORGER) IS EXPIRED OR NOT"
57-
chage -l user
63+
header "CHECK THE 500 LAST LINES OF AUTH.LOG - BECAUSE THIS IS WHERE PAM LOGS"
64+
tail --lines 500 /var/log/auth.log

0 commit comments

Comments
 (0)