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
|
2010-03-28 03:33:02 -06:00
|
|
|
# $OpenBSD: TakeConsole,v 1.3 2010/03/28 09:33:02 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
|