In my older builds I'd given all users access to run X on the console by modifying /etc/X11/Xwrapper.config to be "allowed_users=anybody". This allowed rc.local to run a script as my kiosk user and start X. On the current release this no longer works. At first I'd thought it was just a groups issue. However, adding the kiosk user to both video and tty didn't solve the issue, only changed what error I get.
Not in group tty:
May 2 13:57:00 localhost xinit: Fatal server error:
May 2 13:57:00 localhost xinit: (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)
In group tty:
May 2 13:59:26 localhost xinit: Fatal server error:
May 2 13:59:26 localhost xinit: (EE) xf86OpenConsole: Cannot open virtual console 7 (Permission denied)
I took this as an opportunity to modify my rc.local part into a systemd unit, but the same error occurs. I tried adding the -keeptty flag based on another post I found but it hasn't helped either.
Any advice on how to allow a non-root user to access the virtual console(s) again?
Code: Select all
[Unit] Description = Kiosk Auto Browser After = systemd-user-sessions.service network.target [Service] User = kiosk Group = kiosk Type = simple ExecStart = /usr/bin/xinit /home/kiosk/autokiosk -- -keeptty Restart = on-abort RestartSec = 5 [Install] WantedBy = multi-user.target