#!/bin/sh # Assign ownership of the console to the invoking user # $XConsortium: GiveConsole,v 1.2 93/09/28 14:29:20 gildea Exp $ # # By convention, both xconsole and xterm -C check that the # console is owned by the invoking user and is readable before attaching # the console output. This way a random user can invoke xterm -C without # causing serious grief. # # chown $USER /dev/console # kill the animations killall -s INT xpenguins.old 1> /dev/null 2> /dev/null # Register the login # /usr/X11R6/bin/sessreg -a -w "/var/log/wtmp" -u "/var/run/utmp" \ -x "/etc/X11/wdm/Xservers" -l $DISPLAY -h "" $USER # give ownership of the console to the user chown $USER /dev/console