Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
4 |
- |
1 |
#!/bin/sh
|
|
|
2 |
# Assign ownership of the console to the invoking user
|
|
|
3 |
# $Xorg: GiveConsole,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
|
|
|
4 |
#
|
|
|
5 |
# By convention, both xconsole and xterm -C check that the
|
|
|
6 |
# console is owned by the invoking user and is readable before attaching
|
|
|
7 |
# the console output. This way a random user can invoke xterm -C without
|
|
|
8 |
# causing serious grief.
|
|
|
9 |
#
|
|
|
10 |
chown $USER /dev/console
|
|
|
11 |
exec /usr/bin/sessreg -a -w "/var/log/wtmp" -u "/var/run/utmp" \
|
|
|
12 |
-x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER
|