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

share|improve this question
    
Possibly relevant: bugzilla.redhat.com/show_bug.cgi?id=1203780 Is your xorg the latest version? Are you using a wrapper? – Tom Hunt Dec 1 '15 at 0: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 2 '15 at 0:21

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

allowed_users=anybody
needs_root_rights=yes

Source

share|improve this answer
    
s/Edit/Create. ⁺¹. – Hi-Angel Oct 27 '16 at 14:59
    
Just helped me on a raw Ubuntu 16.04 Server+X install, thanks. – Oli Jun 27 '17 at 14:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.