You are not logged in.

#1 2020-12-24 17:14:07

dyl
Member
Registered: 2020-12-24
Posts: 5

Only able to run startx with root privileges.

Just installed Arch last night and I seem to be encountering an issue regarding Xorg. In the tty shell when I run "startx /usr/bin/i3" it outputs this:


xauth: timeout in locking authority file /home/dylan/.Xauthority
xauth: timeout in locking authority file /home/dylan/.Xauthority
xauth: timeout in locking authority file /home/dylan/.Xauthority

(EE)
Fatal server error:
(EE) Cannot open log file "/home/dylan/.local/share/xorg/Xorg.0.log"
(EE)
(EE)
Please consult at the X.Org Foundation support
at http://wiki.x.org
for help.
(EE)
xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
xauth: timeout in locking authority file /home/dylan/.Xauthority

this output may not be exactly correct because i dont know of a way to copy from the tty shell so i took a picture and transcribed the text

it works without issue if i simply run it with sudo prefacing it

Last edited by dyl (2020-12-24 17:14:49)

Offline

#2 2020-12-24 17:36:13

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Only able to run startx with root privileges.

Try

# rm /home/dylan/.Xauthority
dyl wrote:

run it with sudo prefacing it

Don't do that. Ever.


Jin, Jîyan, Azadî

Offline

#3 2020-12-24 17:41:15

dyl
Member
Registered: 2020-12-24
Posts: 5

Re: Only able to run startx with root privileges.

It seems the directory didnt exist. This is what it output:

rm: cannot remove '/home/dylan/.Xauthority': No such file or directory

Offline

#4 2020-12-24 18:03:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,642

Re: Only able to run startx with root privileges.

stat /home/dylan
ls -la /home/dylan

Online

#5 2020-12-24 18:06:11

dyl
Member
Registered: 2020-12-24
Posts: 5

Re: Only able to run startx with root privileges.

# stat /home/dylan
  File: /home/dylan
  Size: 4096      	Blocks: 8          IO Block: 4096   directory
Device: 802h/2050d	Inode: 3276802     Links: 2
Access: (0755/drwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2020-12-24 11:27:39.615425746 -0600
Modify: 2020-12-24 11:19:15.258750167 -0600
Change: 2020-12-24 11:19:15.258750167 -0600
 Birth: 2020-12-24 00:37:01.118746592 -0600

# ls -la /home/dylan
total 8
drwxr-xr-x 2 root root 4096 Dec 24 11:19 .
drwxr-xr-x 3 root root 4096 Dec 24 00:37 ..

Offline

#6 2020-12-24 18:21:17

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,642

Re: Only able to run startx with root privileges.

Do you understand why that's a problem and causes your error messages?

Online

#7 2020-12-24 18:23:21

dyl
Member
Registered: 2020-12-24
Posts: 5

Re: Only able to run startx with root privileges.

seth wrote:

Do you understand why that's a problem and causes your error messages?

No.

Offline

#8 2020-12-24 18:25:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,642

Re: Only able to run startx with root privileges.

Your $HOME is owned by the root user and the root group and nobody else has writing permissions.
Happened because you forgot to create it w/ useradd and then just mkdir'd it.
=> fix the ownership, https://wiki.archlinux.org/index.php/Fi … attributes

Last edited by seth (2020-12-24 18:26:09)

Online

#9 2020-12-24 18:53:13

dyl
Member
Registered: 2020-12-24
Posts: 5

Re: Only able to run startx with root privileges.

Ok thank you. That fixed it.

Offline

#10 2020-12-24 21:12:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,642

Re: Only able to run startx with root privileges.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB