2006-11-25 13:07:29 -07:00
|
|
|
#!/bin/sh
|
|
|
|
# Reassign ownership of the console to root, this should disallow
|
|
|
|
# assignment of console output to any random users's xterm
|
|
|
|
# $Xorg: TakeConsole,v 1.3 2000/08/17 19:54:17 cpqbld Exp $
|
2006-11-28 08:41:12 -07:00
|
|
|
# $OpenBSD: TakeConsole,v 1.2 2006/11/28 15:41:12 matthieu Exp $
|
2006-11-25 13:07:29 -07:00
|
|
|
#
|
|
|
|
chmod 622 /dev/console
|
|
|
|
chown root /dev/console
|
2006-11-28 08:41:12 -07:00
|
|
|
/usr/X11R6/bin/sessreg -d -l $DISPLAY -u /var/run/utmp -x /usr/X11R6/lib/X11/xdm/Xservers $USER
|