Questions tagged [xauth]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
170 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 ...
user avatar
1 vote
0 answers
78 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 ...
user avatar
0 votes
1 answer
259 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 ...
user avatar
  • 1
3 votes
5 answers
395 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: ...
user avatar
2 votes
1 answer
515 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 ...
user avatar
2 votes
2 answers
2k 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 ...
user avatar
  • 123
1 vote
1 answer
818 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 ...
user avatar
  • 11k
1 vote
1 answer
1k 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 ...
user avatar
  • 281
1 vote
1 answer
3k 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 ...
user avatar
  • 369
1 vote
0 answers
638 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 ...
user avatar
  • 111
5 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 ...
user avatar
1 vote
0 answers
156 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 ...
user avatar
  • 11
1 vote
0 answers
577 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 (...
user avatar
1 vote
1 answer
283 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 ...
user avatar
  • 71
0 votes
0 answers
2k 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 ...
user avatar
  • 816
2 votes
2 answers
4k 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 ...
user avatar
  • 1,062
2 votes
1 answer
20k 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....
user avatar
5 votes
1 answer
20k 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 ...
user avatar
  • 61
5 votes
0 answers
21k 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 ...
user avatar
0 votes
1 answer
810 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. ...
user avatar
  • 5,691
3 votes
3 answers
15k 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/...
user avatar
3 votes
0 answers
3k 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 ....
user avatar
  • 239
2 votes
0 answers
183 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'...
user avatar
  • 5,166
3 votes
2 answers
9k 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 ...
user avatar
  • 1,147
1 vote
1 answer
3k 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/...
user avatar
  • 1,015
3 votes
3 answers
5k 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 ...
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)....
user avatar
  • 469
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 ...
user avatar
  • 703
2 votes
1 answer
310 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 ...
user avatar
  • 20.1k
4 votes
1 answer
6k 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 ...
user avatar
48 votes
5 answers
166k 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 ...
user avatar
  • 346k
49 votes
10 answers
176k 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 ...
user avatar
  • 491
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 ...
user avatar
2 votes
0 answers
424 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 ...
user avatar
  • 939
1 vote
1 answer
946 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
  • 2,195
4 votes
1 answer
7k 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 ...
user avatar
4 votes
2 answers
9k 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 ...
user avatar
  • 141
3 votes
1 answer
5k 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 ...
user avatar
  • 2,213
9 votes
6 answers
44k 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 pinker@192.168.0.200 ...
user avatar
  • 1,756
11 votes
5 answers
84k 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 ...
user avatar
  • 181
66 votes
9 answers
127k 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 ...
user avatar
  • 1,477
12 votes
3 answers
34k 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 ...
user avatar
  • 453
8 votes
4 answers
20k views

How to troubleshoot failed X11 forwarding with ssh?

When I try to establish an X11-forwarding connection to myserver, I get the following error: % ssh -X myserver xlogo X11 connection rejected because of wrong authentication. X11 connection rejected ...
user avatar
  • 13k
11 votes
2 answers
7k views

Evince fails to start because it cannot read .Xauthority

I'm logged in remotely over SSH with X forwarding to a machine running Ubuntu 10.04 (lucid). Most X11 applications (e.g. xterm, gnome-terminal) work fine. But Evince does not start. It seems unable to ...
user avatar
5 votes
1 answer
2k views

Should I be concerned with the error xauth: /home/user/.serverauth.535 does not exist?

I installed a minimal Fedora system and have built it up to getting X running with Xmonad as my window manager. I can startx fine and so far I don't see any issues with my current setup while in X. ...
user avatar
  • 819
6 votes
2 answers
7k views

XAUTHORITY environment variable set repeatedly on every login

I am running a Suse Linux 11.04 system. My problem is that when I do a fresh login into a shell as root, a new Xauthority file of the form xauth***** gets created in the /root/ directory. Upon exiting ...
user avatar
8 votes
2 answers
5k views

How to access X display from a cron job when using gdm3? [duplicate]

Possible Duplicate: Open a window on a remote X display (why “Cannot open display”)? I'm trying to run a cron job that needs access to my X session. I know my X session will always be ...
user avatar
  • 102k