summaryrefslogtreecommitdiff
path: root/config/TakeConsole
blob: 7b080500e9e84b348c3052505201f8f41f427984 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Reassign ownership of the console to root, this should disallow
# assignment of console output to any random users's xterm
# $OpenBSD: TakeConsole,v 1.5 2015/01/25 21:51:20 jca Exp $
#
chmod 622 /dev/console
chown root /dev/console
if [ -c /dev/drm0 ]; then
    chown root /dev/drm0
fi
/usr/X11R6/bin/sessreg -d -l $DISPLAY -u /var/run/utmp -x /etc/X11/xenodm/Xservers $USER