Questions tagged [xauth]
For questions about X11 authentication.
53
questions
0
votes
1
answer
29
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:
...
0
votes
0
answers
41
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-...
0
votes
1
answer
69
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 ...
0
votes
0
answers
721
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 ...
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 ...
1
vote
0
answers
214
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 ...
2
votes
1
answer
2k
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 ...
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: ...
2
votes
1
answer
5k
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 ...
5
votes
3
answers
10k
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 ...
2
votes
1
answer
7k
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 ...
2
votes
2
answers
3k
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 ...
2
votes
1
answer
11k
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 ...
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 ...
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 ...
1
vote
0
answers
271
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 ...
7
votes
2
answers
18k
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 ...
1
vote
0
answers
968
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 (...
1
vote
1
answer
340
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 ...
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 ...
2
votes
2
answers
5k
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 ...
2
votes
1
answer
23k
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....
6
votes
1
answer
30k
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 ...
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
...
0
votes
1
answer
936
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.
...
3
votes
3
answers
17k
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/...
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 ....
2
votes
0
answers
215
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'...
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 ...
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/...
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 ...
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)....
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 ...
2
votes
1
answer
407
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 ...
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 ...
51
votes
5
answers
194k
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 ...
52
votes
11
answers
211k
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 ...
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 ...
2
votes
0
answers
484
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 ...
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 ...
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 ...
4
votes
2
answers
11k
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 ...
4
votes
1
answer
23k
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 ...
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 ...
9
votes
6
answers
50k
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]
...
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 ...
72
votes
9
answers
134k
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 ...
12
votes
3
answers
38k
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 ...
8
votes
4
answers
22k
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 ...
12
votes
2
answers
8k
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 ...