Skip to main content

Questions tagged [xauth]

For questions about X11 authentication.

Filter by
Sorted by
Tagged with
0 votes
0 answers
106 views

xauth not running in chroot

I created a chroot environment on my computer and enabled a few different programs to run on it. I access this chroot environment through an ssh connection. One of the application in this chroot is ...
Goûtay's user avatar
0 votes
1 answer
62 views

Chromium doesn't start under docker without `xhost +local:`

$ xhost access control enabled, only authorized clients can connect xterm works: $ docker run --rm -it --network host \ --volume ~/.Xauthority:/root/.Xauthority:ro \ --env DISPLAY \ alpine:3.19 ...
x-yuri's user avatar
  • 3,453
0 votes
1 answer
85 views

Run display dependent command in a system setting event

I am working on a systemd/udev setting that I would like to share upstream, however I can't get it to work in a non-hacky way. Essentially, I have this script as the exec of a systemd service: ...
Mathias Sven's user avatar
1 vote
0 answers
84 views

What does "#ffff##:0" mean in xauth?

(Migrated from ServerFault.SE) I'm working on a Silverblue system, in part via SSH with X11 forwarding. When I use the graphical console and say xauth list I get this: silverblue/unix:0 MIT-MAGIC-...
Paul Johnson's user avatar
0 votes
1 answer
158 views

Why 'xauth list' doesn't show a TCP socket after ssh-X

I have a very little experience in linux, but these days, I was trying to understand a bit more about ssh and X forwarding. I use an SBC (orange pi zero 2) as a home server under debian. I usually ssh ...
Pif's user avatar
  • 1
0 votes
0 answers
1k views

PUTTY X11 Forwarding does not work: no DISPLAY variable set

I want to get a GUI to an ubuntu server. Locally, I installed XMING & PUTTY and enabled the X11 forwarding. I also tried to specifically set the display location to localhost:0, because I read ...
spadel's user avatar
  • 101
0 votes
0 answers
2k views

Xauthority file does not exist - so what?

I run X11 programs on a Linux host, displaying remotely on a Mac running the XQuartz X11 server. First of all, this is all on my private LAN so I don't need to tunnel the X connection through SSH, and ...
q.undertow's user avatar
1 vote
0 answers
240 views

ssh xterm xsession works but other programs error: X11 connection rejected because of wrong authentication

I setup xauth in part enough to get an xterm, xclock, etc. But any other program like gnome-terminal, a browser, still fails to authenticate. The two computers have the same user name and default ID ...
jcalfee314's user avatar
2 votes
1 answer
3k views

IPsec PSK VPN with strongSwan to FortiGate with one-time-password(Fortitoken)

So I am using Strongswan to connect to remote Fortigate since native Fortinet VPN client does not support IPsec. I also have hardware FortiToken 200 that provides a OTP. My current config is the ...
fteox's user avatar
  • 21
3 votes
5 answers
1k views

Where is sudo hiding my root's .Xauthority data?

I just noticed something peculiar about how sudo handles the .Xauthority file: sudo xauth add $(xauth list | tail -1) user@server: sudo xauth info Authority file: /root/.xauthYZ21Nt File new: ...
Dmitry Grigoryev's user avatar
2 votes
1 answer
6k views

Xauth: timeout in lock authority file /home/user /.Xauthority

I ask for your help since I am on linux and when I wanted to log in normally (typing my password) it kept loading indefinitely, and when I open the "console" with the key combination (ctrl ...
DFG's user avatar
  • 145
7 votes
3 answers
14k views

X11 connection rejected because of wrong authentication

First of all what I want to do: I want to login to a server via ssh. Then change change the user via sudo su user and start some application on my screen. Some collegues do it by su user export ...
Andy A.'s user avatar
  • 207
3 votes
1 answer
13k views

How to generate correctly a new .Xauthority file for a display missing it, without restarting X?

I have removed for a mistake my $HOME/.Xauthority file. I want to recreate it without restarting X11. ATM I have start a new X11 session with this command startx -- :1 but my :0 display still don't ...
elbarna's user avatar
  • 12.8k
2 votes
2 answers
4k views

Invalid MIT-MAGIC-COOKIE-1 when I run mpirun

Suddenly whenever I run mpirun I get the error Invalid MIT-MAGIC-COOKIE-1 key. I think this might have started after I killed a command using mpirun that had been launched from a python console. I ...
Kvothe's user avatar
  • 433
2 votes
1 answer
15k views

About Xauth and DISPLAY variable

I'd like to understand about xauth and DISPLAY variable and how ssh -X auto-generate the DISPLAY variable and why it choose those values? I've seen is somewhere that is not correct to set DISPLAY ...
Astora's user avatar
  • 449
1 vote
0 answers
1k views

Xauthority for python plotting in a docker container

I'm trying to understand how to run a docker container with an X11 server running in it so that I can do visualizations when I write some python code, and found lots of answers out there. I found many ...
Matteo's user avatar
  • 111
6 votes
0 answers
3k views

MPI program causes "invalid MIT-magic-cookie-1 key" warning to show

I'm setting up a new development environment that requires high performance computing. I installed mpi and openmpi on this new machine (Ubuntu 20.04), and I wrote the following code in python as a ...
SoyBison's user avatar
1 vote
0 answers
297 views

starting Xephyr server with auth for some other user

I have a situation where user0, with access to display :0 on the localhost, needs to run Xephyr :1 such that this Xephyr server is only accessible to user1 clients on the localhost. Is this ...
schmeg's user avatar
  • 21
8 votes
2 answers
22k views

No xauth program; cannot forward X11

I got the following error message when I use ssh -v -Y. The server OS is mojave. Does anybody know what is wrong? debug1: No xauth program. Warning: No xauth data; using fake authentication data for ...
user1424739's user avatar
1 vote
0 answers
1k views

How to configure Libreswan IPsec for multiple connections?

I'm trying to set up Xauth IPsec on my linux machine. This IPsec server is behind a NAT. My goal is to have two types of users that can authenticate with a password and a PSK. The first group (...
j3141592653589793238's user avatar
1 vote
1 answer
351 views

.xauth followed by random numbers

According to my own experience, su - user used to break SSH X11 authentication. There are plenty of posts on the web explaining how to use xauth list and xauth add to copy the MIT-COOKIE between ...
Dude's user avatar
  • 83
0 votes
0 answers
3k views

Populating .Xauthority file when DISPLAY and HOST variables are non-existent

I just installed the new Debian 10 Buster and I am not satisfied. I installed it without any desktop. Only basic system utilities were installed during the initial install. After reboot I signed in ...
71GA's user avatar
  • 1,176
3 votes
2 answers
6k views

Systemd - Find .Xauthority file to use

I'm currently using a systemd unit file to configure a service which uses X server display. The X server instance is launched by the user logged in (currently pi user) but the service is launched at ...
Arkaik's user avatar
  • 1,168
2 votes
1 answer
24k views

X11 forwarding and .Xauthority file

I've looked around for an answer to this question off and on for the past few weeks, but none of the solutions I've seen have worked for me. I've tried deleting the .Xauthority file in both locations....
luminessence's user avatar
7 votes
1 answer
34k views

xauth is unable to write to my .Xauthority file

I run Arch Linux with the window manager BSPWM (so no DE) and recently I have been having a problem with my .Xauthority file. I am no longer able to start my X server because it is unable to write ...
Surya R's user avatar
  • 81
7 votes
1 answer
23k views

Xauthority problem xdpyinfo: unable to open display "".

I am trying to run a program after enabling X windows port forwarding. My sshd_config file in /etc/ssh/sshd_config is configured such that: X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes ...
CrazyCray's user avatar
0 votes
1 answer
976 views

"perl/Tk unusable, cannot create main windows." when running using "sudo"

Full error message for sudo /usr/local/bin/tlmgr -gui (TeX Live 2017 manager) I'm getting on my OpenSUSE Tumbleweed with Gnome 3: No protocol specified perl/Tk unusable, cannot create main windows. ...
phk's user avatar
  • 5,983
3 votes
3 answers
18k views

No protocol specified: Unknown Error couldn't connect to display ":0" [closed]

I've installed Debian 8 since a week, but I can not run any graphical application from console with the root user. Infact, when I run xampp (or any other program) I get the following error root# /opt/...
DarkCoffee's user avatar
3 votes
0 answers
4k views

How to generate a new Xauthority with no home?

I have been given access to a system where I have no home folder. I've asked the administrator to create a home folder for me but due to some complexity he is unable to. Therefore, I have no ....
eng3's user avatar
  • 279
2 votes
0 answers
222 views

How do I make X client untrusted, but with access to GPU?

If I try to make a client untrusted, xauth -f XauthorityU generate $DISPLAY MIT-MAGIC-COOKIE-1 untrusted export XAUTHORITY=$PWD/XauthorityU it loses access to acceleration: $ glxgears Error: couldn'...
Vi.'s user avatar
  • 5,813
3 votes
2 answers
10k views

$HOME readonly: /usr/bin/xauth: timeout in locking authority file /home/fooftp/.Xauthority

I get this message after a annoying timeout: /usr/bin/xauth: timeout in locking authority file /home/fooftp/.Xauthority For some reasons the $HOME directory is not writeable by the user. I want ...
guettli's user avatar
  • 1,449
1 vote
1 answer
4k views

timeout in locking authority file (vnc service)

There are some pages about timeout in locking authority file /root/.xauth but I really don't understand what is the root of the problem. As I start vnc service, I see: root@cluster:mahmood# /etc/...
mahmood's user avatar
  • 1,241
3 votes
3 answers
6k views

Forwarding X-windows through a su - session

I'm trying to forward my X windows, but seems to be limited to just on session? What I'm trying to do is invoke x-applications as another user, through a sudo su -. If I know the other user's ...
leonhardtk's user avatar
2 votes
1 answer
2k views

How to replace the hostname portion with xauth (OLD: How to redirect output of xauth command?)

I would like to generate a new Xauthority file using xauth with another hostname portion and write it to a different file name (as opposed to ~/.Xauthority where the xauth command typically writes to)....
MCH's user avatar
  • 499
1 vote
1 answer
1k views

X11 authentication is not working in `sudo sux / sudo su`, but works in `sux / su.` Why?

I have a vnc session and I can access X11 just by doing su - user, for other user, without the need of sux. Also, when I am trying to switch to user, using sudo sux - user or sudo su - user, I can't ...
GP92's user avatar
  • 825
2 votes
1 answer
441 views

manually redirecting X output through ssh

I have a remote server, on which I am able to log in with ssh. However there is no home directory for my user. When I try to ssh -X to that server, ssh tries to put a cookie into ~/.Xauthority which ...
michas's user avatar
  • 21.6k
4 votes
1 answer
7k views

invalid MIT-MAGIC-COOKIE-1 error whenever computer falls asleep

Whenever my laptop falls asleep and is woken up (Lenovo Thinkpad X1 Carbon Gen 3), certain applications will no longer run. For example, when trying to launch dmenu or google-chrome-stable (XMonad ...
user1569339's user avatar
52 votes
5 answers
205k views

Why am I getting this message from xauth: "timeout in locking authority file /home/<user>/.Xauthority"?

While attempting to SSH into a host I received the following message from xauth: /usr/bin/xauth: timeout in locking authority file /home/sam/.Xauthority NOTE: I was trying to remote display an ...
slm's user avatar
  • 372k
58 votes
12 answers
225k views

"Invalid MIT-MAGIC-COOKIE-1 key" when trying to run program remotely

I am attempting to run an application (ParaView) in client-server mode with its graphics rendering being done on the remote (server) end. I am using SSH as my means of connecting to the server, but do ...
CS6394's user avatar
  • 581
3 votes
0 answers
1k views

Xmove is unable to connect to X11 server via SSH X forwarding

I have a LAN where a windows machine running Cygwin (XWin server) is used to connect to a Linux host via SSH with trusted X forwarding. I connect with $ ssh -Y user@linuxhost without any issues and ...
Dmitry Grigoryev's user avatar
2 votes
0 answers
494 views

Xauthority problem

User1 has his home directory on NFS that's mounted by machine1 and machine2, both of which are running Redhat 6.4. If I ssh -Y user1@machine1 and run gedit, I get "X11 connection rejected because of ...
ventsyv's user avatar
  • 1,039
1 vote
1 answer
1k views

GUI running without $XAUTHORITY being defined, but not for root

I'm using CentOS 6, with Xfce as a desktop environment and have switched to xdm from gdm as a display manager. However, after making this change, I am observing a very strange oddity: graphical ...
user avatar
4 votes
1 answer
9k views

change location of $HOME/.Xauthority

Is it possible to change the location for .Xauthority, to something other than $HOME/.Xauthority ? AFAIU, this file is being created every time I log into LXDE, by my login manager slim. The problem ...
Martin Vegter's user avatar
4 votes
2 answers
12k views

.Xauthority file is empty

I have been trying to ssh -X to my cluster running OpenSUSE 11.2. It used to work well for me. But now I get this message: X11 connection rejected because of wrong authentication. Failed to open the ...
Prasanna's user avatar
  • 141
4 votes
1 answer
24k views

x11 connection established but magic-cookie value different?

From my local machine I ssh to a remote server along with authentication regarding X display. I know that in this process, MIT-MAGIC-COOKIES are used and the value in both server and client needs to ...
kwagjj's user avatar
  • 2,319
3 votes
1 answer
6k views

MIT Shared Memory Extension or MIT-SHM over ssh

I successfully created a privileged lxc archlinux container on an archlinux host with lxc. I set up a static ip via dnsmasq and ssh into it and I use xauth to forward X11. I then call programs like ...
lord.garbage's user avatar
  • 2,373
10 votes
6 answers
52k views

SSH XForwarding fails - xauth bad display name

I'm trying to setup XForwarding over ssh, but it fails. The same result happens whether I use the argument -X or -Y for ssh. The error I get. a@ASUS-N53SM:~$ ssh -X -p 6623 [email protected] ...
Rucent88's user avatar
  • 1,880
12 votes
5 answers
87k views

Cannot connect to X server :0.0 as superuser

When I am online, I get following error and the tool does not start: [root@dhcppc9 lin64]# ./ise No protocol specified _pn: cannot connect to X server :0.0 But everything is OK when I am not a ...
msz's user avatar
  • 301
73 votes
9 answers
136k views

"su" with error "X11 connection rejected because of wrong authentication"

As root, I'm connecting to a remote host to execute a command. Only "standarduser" has the appropriate id-file and correct .ssh/config, so I'm switching the user first: su standarduser -c 'ssh -x ...
Stefan M's user avatar
  • 1,636
12 votes
3 answers
40k views

How to run startx as non-root?

Recently, I switched from Ubuntu to Arch Linux. I've installed X11 as my Window System and KDE as my Desktop Environment. I've separate partition for /home, /var, / and /boot and they all mount at ...
Habi's user avatar
  • 463