This file is indexed.

/usr/share/doc/syslogout/examples/etc/X11/xdm/Xreset.sample is in syslogout 0.3.9.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/sh
#
# /etc/X11/xdm/Xreset
#
# This script is run as root after the X session ends.

PATH=$PATH:/usr/bin/X11
HOSTSERVER=$(echo $DISPLAY | cut -d. -f1)
PIDFILE=/var/run/xconsole.$HOSTSERVER.pid

if [ -e $PIDFILE ]; then
  PID=$(cat $PIDFILE 2> /dev/null)
  if [ -n "$PID" ]; then
    kill $PID 2> /dev/null
  fi
  rm $PIDFILE
fi

# Run /etc/syslogout being $USER
su - $USER -c "if [ -f /etc/syslogout ]; then . /etc/syslogout; fi"

# remove the utmp entry for the session
if grep -qs ^use-sessreg /etc/X11/xdm/xdm.options && command -v sessreg > /dev/null 2>&1; then
  sessreg -d -l $DISPLAY -u /var/run/utmp -x /etc/X11/xdm/Xservers $USER
fi

exit 0

# vim:set ai et sts=2 sw=2 tw=0: