You are not logged in.

#1 2015-04-30 05:21:31

pseudomonas
Member
Registered: 2015-04-30
Posts: 3

Cannot run xorg as non-root

I have a fresh install of Arch Linux that is working great except I cannot run xorg as my normal login, only root.

When I attempt to start X with either startxfce4 or startx, I get

xf68openconsole: cannot open virtual console 1 (permission denied)

XFCE is installed and works fine as root. I've done a lot of searching and I've found a lot of other people having this problem but none of their solutions have worked for me. I tried reinstalling xorg, checking my user permissions (I'm in the wheel group), and adding vt$XDG_VTNR to the end of my xserverrc file.

I haven't used arch in a long time (before systemd) and I feel like a rank newbie! Nothing I have read suggests any need for permissions changes when installing X so I don't know why it's not working out of the box. I feel like it must be an obvious answer but I need someone to slap me in the face with it, obviously.

Appreciate any help in advance-

Offline

#2 2015-04-30 06:33:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot run xorg as non-root

Post your ~/.xinitrc and the exact command you use e.g. 'startx' or 'startx -- :1 vt$XDG_VTNR -keeptty' etc. Make sure e.g. 'startx' is not aliased to something.
Have you tried starting it from another tty? Do you run the stock linux console in the tty or e.g. tmux?

Post the output of

uname -a

What's your hardware and graphics drivers?

Offline

#3 2015-04-30 16:37:54

pseudomonas
Member
Registered: 2015-04-30
Posts: 3

Re: Cannot run xorg as non-root

karol wrote:

Post your ~/.xinitrc and the exact command you use e.g. 'startx' or 'startx -- :1 vt$XDG_VTNR -keeptty' etc. Make sure e.g. 'startx' is not aliased to something.
Have you tried starting it from another tty? Do you run the stock linux console in the tty or e.g. tmux?

Post the output of

uname -a

What's your hardware and graphics drivers?

xinitrc here

I am using startxfce4:

[root@ninja-laptop /]# type startxfce4
startxfce4 is /usr/bin/startxfce4

I haven't made any changes to the console or tty so I'm assuming I'm running it in stock. I haven't tried starting from another tty.


[root@ninja-laptop /]# uname -a
Linux ninja-laptop 3.19.3-3-ARCH #1 SMP PREEMPT Wed Apr 8 14:10:00 CEST 2015 x86_64 GNU/Linux

Thanks-

Offline

#4 2015-04-30 16:42:25

pseudomonas
Member
Registered: 2015-04-30
Posts: 3

Re: Cannot run xorg as non-root

Oh, and...

[root@ninja-laptop /]# lspci | grep -e VGA -e 3D
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)

I am using the xf86-video-intel drivers.

Offline

#5 2015-04-30 17:13:10

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,559
Website

Re: Cannot run xorg as non-root

This came up recently, I thought it was fixed but if the following works then it seems the issue returned:

startxfce4 -- vt$XDG_VTNR

EDIT: it seems the symptoms are diffrent from here, but it's still worth a shot.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2015-04-30 17:30:52

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot run xorg as non-root

That xinitrc has 2 'exec' lines, so the latter, 'exec startxfce4' won't be executed.
You're also starting twm in it ...
Please read https://wiki.archlinux.org/index.php/Xinitrc

Offline

#7 2015-04-30 17:42:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,559
Website

Re: Cannot run xorg as non-root

Karol, the OP isn't using that xinitrc anyways.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2015-05-01 00:01:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Cannot run xorg as non-root

Trilby wrote:

Karol, the OP isn't using that xinitrc anyways.

Yes, I know, I don't think it matters. I was curious what exactly did OP add and where:

pseudomonas wrote:

I tried reinstalling xorg, checking my user permissions (I'm in the wheel group), and adding vt$XDG_VTNR to the end of my xserverrc file.

Offline

Board footer

Powered by FluxBB