#!/bin/sh # # Note: this is a sample and will not be run as is. Change the name of this # file to /gdm/PostLogin/Default for this script to be run. This # script will be run before any setup is run on behalf of the user and is # useful if you for example need to do some setup to create a home directory # for the user or something like that. $HOME, $LOGIN and such will all be # set appropriately and this script is run as root. TMPFILE=/tmp/X_user_for_osd echo $USERNAME > $TMPFILE # as the file we create is used in a script which will be run as root, # make sure nobody can mess around with it... chmod 600 $TMPFILE