Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [xauth]

The tag has no usage guidance.

0
votes
0answers
13 views

ipsec libreswan weakest available params

what is the weakest value in libreswan for ike=? phase2alg=? i'd like to use ipsec/xauth/psk as only for transport purpose
0
votes
0answers
32 views

ipsec per user id routing

could someone point me out how should look the config of ipsec (libreswan) the way that i could assign a static public ip per user id we use ipsec xauth/psk left (client) ipsec identifier based on ...
2
votes
1answer
223 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 ...
1
vote
1answer
6k 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....
1
vote
1answer
2k 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 ...
2
votes
0answers
6k 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
1answer
376 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. ...
2
votes
3answers
5k 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
0answers
2k 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 ....
1
vote
0answers
78 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'...
2
votes
2answers
4k 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
1answer
1k 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
3answers
3k 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
1answer
829 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
1answer
611 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
1answer
168 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 ...
2
votes
1answer
2k 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 ...
27
votes
4answers
78k 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 ...
18
votes
3answers
79k 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
0answers
744 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
0answers
309 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
1answer
737 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 ...
5
votes
1answer
3k 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
0answers
4k 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 ...
2
votes
1answer
2k 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 ...
8
votes
6answers
29k 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 ...
8
votes
4answers
67k 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 ...
48
votes
6answers
109k 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 ...
9
votes
2answers
17k 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 ...
5
votes
4answers
13k 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 ...
10
votes
2answers
6k 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 ...
5
votes
1answer
1k 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. ...
6
votes
2answers
5k 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 ...
6
votes
2answers
4k 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 ...