mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
"x11 error connection refused" or "connection refused" after login with linux #1115
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#1115
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hnduomi on GitHub (Dec 6, 2022).
on linux start,rustdesk server start,as no user login in ,so current uid is 127,
log:
[src/platform/linux.rs:179] uid of seat0: 127
[src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority
now,i can connect and input password at gnome login form
after input password of linux,i use root ,so current uid is 0
log:
[src/platform/linux.rs:179] uid of seat0: 0
[src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority
then connection refused alert
i reboot the rustdesk server
log:
[src/platform/linux.rs:208] XAUTHORITY: /run/user/0/gdm/Xauthority
so i guess the "connection refused" is caused by user change or gnome session change
@rustdesk commented on GitHub (Dec 9, 2022):
full log please
@rustdesk commented on GitHub (Dec 9, 2022):
and always happen?
@hnduomi commented on GitHub (Dec 9, 2022):
yes ,always
steps:
1,open computer,do not login
2,use rustdesk control screen and input username,password login
3,login success,rustdesk notice "connection refused"(rustdesk apk 1.2.0),"x11 error connection refused"(rustdesk apk 1.1.9)
4,reboot rustdesk service
5,connect success
env:kali linux,gnome,rustdesk apk(1.2.0 and 1.1.9)
@hnduomi commented on GitHub (Dec 9, 2022):
this part is login in and not restart rustdesk service
this part is restart rustdesk service
you can see,XAUTHORITY changed from 127 to 0
@rustdesk commented on GitHub (Dec 9, 2022):
what time did you input user and password? and which user? root?
@hnduomi commented on GitHub (Dec 9, 2022):
1,open local computer, then gnome show login form
2,use rustdesk apk control screen and input username,password login,user is root,
3,login success,rustdesk apk notice "connection refused"(rustdesk apk 1.2.0)
@rustdesk commented on GitHub (Dec 9, 2022):
I wanna test with root, but root UI login is forbidden on Ubuntu. Sorry, hope some guys can help you solve this.
It is very strange
returns
/run/user/127/gdm/XauthorityI do not know if changing
-uto-Ucan work.I have no env to test.
github.com/rustdesk/rustdesk@0bc0d489d6/src/platform/linux.rs (L659)@hnduomi commented on GitHub (Dec 9, 2022):
i create a test user, not at root permission
rustdesk work well test user
i guess x11 error alert just at root
the log:
low permission user id is 1000
root user id is 0
no user login in id is 127(i guess)
if use root login and rustdesk alert x11 error,restart the rustdesk service,then will work OK
@rustdesk commented on GitHub (Dec 10, 2022):
Please try out new build tomorrow.
@Rrubidium commented on GitHub (Dec 30, 2022):
I know how to fix it.Just install bless(apt-get install bless) and (bless /usr/bin/rustdesk), and search "geteuid" in text and change it with "getppid" , and save , reopen the rustdesk finally.It's OK to connect! I think it's the root login's problem.
@rustdesk commented on GitHub (Apr 6, 2023):
#440
@VladimirFomin90 commented on GitHub (Jun 8, 2024):
It is necessary to allow access to audio in Rustdesk, at the computer to which you are connected, it helped me. Hooray!