X server only starts as root

16,450

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

allowed_users=anybody
needs_root_rights=yes

Source

Share:
16,450

Related videos on Youtube

IW16
Author by

IW16

Updated on September 18, 2022

Comments

  • IW16
    IW16 over 1 year

    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

    • Tom Hunt
      Tom Hunt over 8 years
      Possibly relevant: bugzilla.redhat.com/show_bug.cgi?id=1203780 Is your xorg the latest version? Are you using a wrapper?
    • ojs
      ojs over 8 years
      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.
  • Hi-Angel
    Hi-Angel over 7 years
    s/Edit/Create. ⁺¹.
  • Oli
    Oli almost 7 years
    Just helped me on a raw Ubuntu 16.04 Server+X install, thanks.
  • placid chat
    placid chat over 2 years
    maybe allowed_user=console would be a better invocation?