13

I have an Arch Linux system, stock kernel and drivers. For some strange reason, xinit produces an error when it is started by a non-root user. The logs say this:

(EE) parse_vt_settings: Cannot open /dev/tty0 (No such file or directory)

However, I can stat and ls the file from the non-root user and the permission on it are 755

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
IW16
  • 131
  • 1
  • 1
  • 3
  • Possibly relevant: https://bugzilla.redhat.com/show_bug.cgi?id=1203780 Is your xorg the latest version? Are you using a wrapper? – Tom Hunt Dec 01 '15 at 00:10
  • Umm, on my arch-linux the permissions on `/dev/tty0` are 620, and owner is `root` and group id is `tty`. Try setting the write permission for group and see if that helps. – ojs Dec 02 '15 at 00:21

1 Answers1

7

Edit /etc/X11/Xwrapper.config as follow :

allowed_users=anybody
needs_root_rights=yes

Source

mackatozis
  • 171
  • 4