summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/GiveConsole2
-rw-r--r--config/TakeConsole4
2 files changed, 3 insertions, 3 deletions
diff --git a/config/GiveConsole b/config/GiveConsole
index b209f17..824856f 100644
--- a/config/GiveConsole
+++ b/config/GiveConsole
@@ -11,4 +11,4 @@ chown $USER /dev/console
if [ -c /dev/drm0 ]; then
chown $USER /dev/drm0
fi
-/usr/X11R6/bin/sessreg -a -l $DISPLAY -u none -x /etc/X11/xenodm/Xservers $USER
+/usr/X11R6/bin/sessreg -a -l $DISPLAY -u none $USER
diff --git a/config/TakeConsole b/config/TakeConsole
index 7cce126..a7ae840 100644
--- a/config/TakeConsole
+++ b/config/TakeConsole
@@ -1,11 +1,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.2 2017/10/04 18:28:59 matthieu Exp $
+# $OpenBSD: TakeConsole,v 1.3 2018/07/11 19:20:40 matthieu Exp $
#
chown root /dev/console
chmod 622 /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
+/usr/X11R6/bin/sessreg -d -l $DISPLAY -u none $USER