X11 connection rejected because of wrong authentication


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers X11 connection rejected because of wrong authentication
# 1  
Old 03-26-2010
X11 connection rejected because of wrong authentication

I have two Solaris 10 systems, A and B, both of which share home directories via NFS (served from a 3rd, Linux, machine). User names, uids, and home directories are identical when the same user has accounts on both Solaris 10 machines.

When I run
Code:
ssh -X user@A

from my home machine, I can easily run X11 apps. However, when I do
Code:
ssh -X user@B

, I get the following in response to commands:

Code:
X11 connection rejected because of wrong authentication.
X connection to well:11.0 broken (explicit kill or server shutdown).

Googling indicates that this problem often occurs in response to a disk full condition, but none of my file systems on either A or B are anywhere near full. Googling also turned up possibilities about TMPDIR pointing to a directory with invalid permissions (the TMPDIR on both systems is drwxrwxrwt, as it should be) or that the permissions on an existing .Xauthority file are incorrect (I tried moving this file out of the way with no change in being able to run X apps).

Further investigation seems to indicate that system B is unable to create or modify the .Xauthority file. Since "user" has full read/write/execute search to his home directory on both A and B, and has the same UID, he shouldn't have any problems updating the .Xauthority file. In fact, he can do "touch" to create the file on either system (once the old one is moved out of the way).

If I remove the .Xauthority file, and login to system A, I see:

Code:
 /usr/openwin/bin/xauth:  creating new authority file /home/.../.Xauthority

when I login, and the .Xauthority file exists. If I again remove the file, and login to system B, I don't see this message, and the file is not created. It doesn't get created even if I try running xauth

Any suggestions gratefully appreciated - I'm tired of banging my head against the wall on this.

---------- Post updated Mar 26th, 2010 at 11:31 ---------- Previous update was Mar 25th, 2010 at 12:56 ----------

Nobody with any suggestions? Is there a better place to ask?

---------- Post updated at 16:27 ---------- Previous update was at 11:31 ----------

I've figured this out on my own. SYstem B had an /etc/sshrc file, while system A did not have one. When there is an sshrc file, sshd does not run xauth when a user logs in - it has to be explictly run in some other way (such as in the sshrc or ~/.ssh/rc)

The init code looks like this, in case anybody else ever runs into this problem:

Code:
if read proto cookie && [ -n "$DISPLAY" ]; then
   if [ `echo $DISPLAY | cut -c1-10`  =  'localhost:' ]; then
      # X11UseLocalhost=yes      echo add unix:`echo $DISPLAY |
      cut -c11-` $proto $cookie   else             
      # X11UseLocalhost=no      echo add $DISPLAY $proto $cookie
   fi |   /usr/openwin/bin/xauth -q -
fi

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Loosing connection after authentication

Hi! I am having a problem when logging in on a solaris 10 server, after typing one or two commands, I lose connectivity, with the following message: server unexpectedly closed network connection I have checked the following: grep `uname -n` /etc/inet/hosts /etc/inet/ipnodes... (8 Replies)
Discussion started by: fretagi
8 Replies

2. Forum Support Area for Unregistered Users & Account Problems

Registration User Name Rejected

Unix Admin Registration process refused two user names. I may have already registered here and it's kicking me out because of email address but giving me username msg. What's the solution to this? Thanks (0 Replies)
Discussion started by: Unregistered
0 Replies

3. UNIX for Advanced & Expert Users

[Solved] putty+x11:How do I pass X11 display rights to "su"?

I can log into a unix system with Putty. I've set the "X11 forwarding" checkbox, and I've verified that I can display an X11 window back on my laptop. What I need to be able to do is "su" to another uid after logging in and then run something which display a window back on my laptop, with the... (2 Replies)
Discussion started by: dkarr
2 Replies

4. Shell Programming and Scripting

KERBEROS_V4 rejected as an authentication type error

Hi am just trying to FTP am while doing so am getting the "KERBEROS_V4 rejected as an authentication type" error.Please let me know what should be done to avoid this error. The code is #!/bin/ksh -x # # Get new files only ftp # source="source.com" basedir="/home/xyz/"... (0 Replies)
Discussion started by: weknowd
0 Replies

5. UNIX for Dummies Questions & Answers

X11 connection problem when using Xwin-32

Hi I'm using Xwin-32 to connect to my labs UNIX machines. Previously I was able to connect to the systems easily but now I get this error message (posted below) and the unix session is not able to start. can somebody help me. Looking up host "blade2.tec.ufl.edu" Connecting to 128.227.241.112... (0 Replies)
Discussion started by: mevich
0 Replies

6. Solaris

Solaris 10 ftp connection problem (connection refused, connection timed out)

Hi everyone, I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies

7. Linux

KERBEROS_V4 rejected as an authentication type & cron

Running as cron, I get error msg in mail: KERBEROS_V4 rejected as an authentication type, even though the ftp does work. Can anyone explain this? Is there a way to stop it? cron: 35 6 * * 1-5 ./PSS/pss.sh >> ./PSS/pss.log script pss.sh: #!/usr/bin/ksh DIR=/home/informix/PSS... (0 Replies)
Discussion started by: ejaggers
0 Replies

8. Forum Support Area for Unregistered Users & Account Problems

user names being rejected during registration

To Whom It May Concern, I've tried registering, and am unable to do so. The message being returned is that my name choices are being rejected for not meeting some administrator criteria, which is not discernible from the message returned by the board software. The password I chose was all... (1 Reply)
Discussion started by: username_in_use
1 Replies

9. Windows & DOS: Issues & Discussions

cygwin-x/can't install xorg-x11-f100 & xorg-x11-fnts

Hello All. Really a newbie to Linux/Unix. Trying to get into Linux. Using XP PE currently. Installed cygwin and trying to intall cygwin-x. Everything else is setup nice but i can't seem to install these two packages (without whom xwin won't start) 1. xorg-x11-f100 2. xorg-x11-fnts Tried the... (1 Reply)
Discussion started by: binodbdrchand
1 Replies
Login or Register to Ask a Question