#!/bin/sh # IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # gos720 src/gos/2d/XTOP_R7/app/xdm/config/GiveConsole 1.1 # # Licensed Materials - Property of IBM # # COPYRIGHT International Business Machines Corp. 2006 # All Rights Reserved # # US Government Users Restricted Rights - Use, duplication or # disclosure restricted by GSA ADP Schedule Contract with IBM Corp. # # IBM_PROLOG_END_TAG # SCCSID_BEGIN_TAG # @(#)44 1.1 src/gos/2d/XTOP_R7/app/xdm/config/GiveConsole, xdmcp, gos720 12/4/06 13:31:18 # SCCSID_END_TAG # Assign ownership of the console to the invoking user # $Xorg: GiveConsole,v 1.3 2000/08/17 19:54:17 cpqbld 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