You are not logged in.

#1 2021-08-26 00:31:40

squidrin
Member
Registered: 2021-07-24
Posts: 10

vnc server only logs in as root, xauthority issues related

its pretty self explanatory, but if anyone needs me to explain more or log any command outputs, id be happy to do so. is this possibly a problem with setting up as super user? in my config file for vnc, i describe vnc session 0 as belonging to my nonroot user

on the xsession issue: it appears that every time i start a vnc session, x or lightdm is unable to be permitted to run or keep running a desktop on my nonroot user. every time i reset my computer, i have to reset ~/.Xauthority in another tty. i have my nonroot user set to vnc display 0, but have to keep running another display at 1 because i am unable to connect to 0 despite it running at boot time via systemd.

Last edited by squidrin (2021-08-26 01:07:14)

Offline

#2 2021-08-26 07:38:08

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

Re: vnc server only logs in as root, xauthority issues related

How does this relate to the "solved" https://bbs.archlinux.org/viewtopic.php?id=269119 ?
What do you mean by "reset ~/.Xauthority"? Do you delete it or merely alter its permissions?
What are

xauth info; xauth list

w/ good and bad ~/.Xauthority ?

Please clarify how *exactly* you run vnc (user service??) and whether it's x0vnc.
I assume you've read and followed https://wiki.archlinux.org/title/TigerVNC ?
If not, read it now and filter your local setup accordingly.

Also post your vnc config.

Online

#3 2021-08-26 11:13:03

squidrin
Member
Registered: 2021-07-24
Posts: 10

Re: vnc server only logs in as root, xauthority issues related

seth wrote:

How does this relate to the "solved" https://bbs.archlinux.org/viewtopic.php?id=269119 ?
What do you mean by "reset ~/.Xauthority"? Do you delete it or merely alter its permissions?
What are

xauth info; xauth list

w/ good and bad ~/.Xauthority ?

Please clarify how *exactly* you run vnc (user service??) and whether it's x0vnc.
I assume you've read and followed https://wiki.archlinux.org/title/TigerVNC ?
If not, read it now and filter your local setup accordingly.

Also post your vnc config.

When I say that it's solved, I thought that xauthority only had to be removed once, so I marked it as solved. So no it's not actually solved. I remove the actual file, as archwiki suggests under lightdm (6.16)

Xauth list return:

quinsdesktopc/unix:0  MIT-MAGIC-COOKIE-1  51e6f0f1acfde5a92310dc7bc6806ce

Xauth info return:

Authority file:       /home/quin/.Xauthority
File new:             no
File locked:          no
Number of entries:    1
Changes honored:      yes
Changes made:         no
Current input:        (argv):1

This, however, is before I start the vnc server. In actuality, after the vnc server is started, xauthority returns that xauthority Is not writable, and changes will be ignored, and xauth list returns that there was a timeout in locking authority file under my home directory.
Yes, I followed the tigervnc archwiki guide
I start a vnc server using 'sudo vncserver :1' because it's the only way that works.

Can you specify exactly which config file(s) you want to see?

Last edited by squidrin (2021-08-26 11:17:36)

Offline

#4 2021-08-26 13:57:09

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

Re: vnc server only logs in as root, xauthority issues related

xauthority returns that xauthority Is not writable

What means a permission issue, likely because

I start a vnc server using 'sudo vncserver :1'

this certainly is nowhere in the wiki.

Why is that

the only way that works

how and where exactly do you run this?
Is this a headless server or are you trying to forward an active session and wanted to use x0vncserver?

Can you specify exactly which config file(s) you want to see?

You earlier wrote:

in my config file for vnc

Online

#5 2021-08-26 15:42:30

squidrin
Member
Registered: 2021-07-24
Posts: 10

Re: vnc server only logs in as root, xauthority issues related

seth wrote:

xauthority returns that xauthority Is not writable

What means a permission issue, likely because

I start a vnc server using 'sudo vncserver :1'

this certainly is nowhere in the wiki.

Why is that

the only way that works

how and where exactly do you run this?
Is this a headless server or are you trying to forward an active session and wanted to use x0vncserver?

Can you specify exactly which config file(s) you want to see?

You earlier wrote:

in my config file for vnc

The computer is my desktop. It isn't headless. I used vncserver because it's the only way I can start a session and connect to it.

Offline

#6 2021-08-26 15:55:39

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

Re: vnc server only logs in as root, xauthority issues related

What?
This doesn't really explain anything, but if you want to share a running desktop session, you want to look again at the wiki.
Closer.
In particular at https://wiki.archlinux.org/title/TigerV … al_display

Online

#7 2021-08-26 16:00:30

squidrin
Member
Registered: 2021-07-24
Posts: 10

Re: vnc server only logs in as root, xauthority issues related

seth wrote:

What?
This doesn't really explain anything, but if you want to share a running desktop session, you want to look again at the wiki.
Closer.
In particular at https://wiki.archlinux.org/title/TigerV … al_display

I probably want to use x0vncserver, I'll try that and get back to you when I can access my desktop

I don't understand exactly what you don't understand. Can you be more specific? My computer is hooked up to a monitor, and is not meant to run headless. I got the command from a forum thread and tried it. I don't understand why it destroys my x session permissions though.

Offline

#8 2021-08-26 20:38:38

squidrin
Member
Registered: 2021-07-24
Posts: 10

Re: vnc server only logs in as root, xauthority issues related

squidrin wrote:
seth wrote:

What?
This doesn't really explain anything, but if you want to share a running desktop session, you want to look again at the wiki.
Closer.
In particular at https://wiki.archlinux.org/title/TigerV … al_display

I probably want to use x0vncserver, I'll try that and get back to you when I can access my desktop

I don't understand exactly what you don't understand. Can you be more specific? My computer is hooked up to a monitor, and is not meant to run headless. I got the command from a forum thread and tried it. I don't understand why it destroys my x session permissions though.

seth wrote:

What?
This doesn't really explain anything, but if you want to share a running desktop session, you want to look again at the wiki.
Closer.
In particular at https://wiki.archlinux.org/title/TigerV … al_display

Ok it worked thx

Offline

#9 2021-08-27 05:23:40

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

Re: vnc server only logs in as root, xauthority issues related

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