Symptom

Users following the kiosk tutorial reported X11 failing to start with: xf86OpenConsole: Cannot open virtual console 7 (Permission denied)

The kiosk service would not start, and journalctl -u kiosk showed the Xorg error immediately after chvt 7.

Root cause

On Raspberry Pi OS Lite, /dev/tty7 has permissions crw--w---- root:tty. The tty group receives write-only access. Xorg calls open("/dev/tty7", O_RDWR) and fails for the kiosk user even though that user is a member of the tty group.

The kiosk launcher runs as root before su - kiosk, so it can chown kiosk /dev/tty7 before switching virtual terminals. Without this step Xorg cannot open the device for read.

Fix

The ownership is transient — systemd’s TTYReset=yes / TTYVHangup=yes / TTYVTDisallocate=yes on the service unit restores the device on exit.

Prevention