GDM scripts
Create the file /var/log/gdm.log.
In the file /etc/gdm/PreSession/Default add the line
for script in /etc/gdm/PreSession/S*; do sh $script >> /var/log/gdm.log 2>&1; done
In the file /etc/gdm/PostSession/Default add the line
for script in /etc/gdm/PostSession/K*; do sh $script >> /var/log/gdm.log 2>&1; done
Create script /etc/gdm/PreSession/S01session:
#!/bin/bash
echo == LOGIN $LOGNAME `date`
echo ====
Create script /etc/gdm/PostSession/K01session:Read more