Troubleshooting > FAQs

FAQs

Questions List

  1. Locking authority file or X11 connection rejected.
  2. How to see the quota of your directory.
  3. How to see the disk space you have used in your directory.
  4. How to change my prompts in Linux.

Q: When I login to any server, I get following error message:

/usr/X11R6/bin/xauth: error in locking authority file
/home/srm206/.Xauthority
/usr/X11R6/bin/xauth: error in locking authority file
/home/srm206/.Xauthority
ssh> 702 X11 connection rejected because of wrong authentication.
stderr>
X connection to localhost:11.0 broken (explicit kill or server shutdown).
X connection to localhost:11.0 broken (explicit kill or server shutdown).
ssh> 702 channel 0: Channel::shutdownWrite: closed
ssh> 702 channel 0: Channel::shutdownRead: closed
Program exited with code 1

A: Two possible solutions here:

a)You are over disk quota. You can check your AFS disk space at http://www.lehigh.edu/account or if you are running jobs under /Project directory, check out next FAQ to see the quota information. You can also bump quota there. For storage information, please go here.

b)If you have been logged onto the server over 24 hours,you need another AFS certificate by using "klog" command.

Attention: If you are running jobs in your AFS directory, you will need AFS certificate for every 24 hours. However, if jobs are running in other directories like "/project", you do not have the certificate problem. We strongly recommend you running jobs in non-AFS directories.

Detail about "klog" command:
http://www.openafs.org/pages/doc/AdminReference/auarf200.htm
http://www.psc.edu/general/filesys/afs/klog.html


Q: How to know the quota of your directory (e.g. /Projects/XXX) ?

A: Using "quota -g XXX" command.

[lih307@altair1 HPCTEST]$ quota -g HPCTEST
Disk quotas for group HPCTEST (gid 2014):
Filesystem blocks quota limit grace files quota limit grace
nas1.cc.lehigh.edu:/Projects 0 10000000 10000000     3 0 0

In this example, "HPCTEST" is the directory and also the name of user group under "/Projects".


Q: How to see the disk space you have used in your directory ?

A: Using "du -ch" command.

-bash-3.00$ du -ch /home/lih307 | grep total
77M total

In this example, "/home/lih307" is the name of the directory that you want to check the used space. Detail information about du, please refer to "man du" command.


Q: How to change the prompts in Linux ?

A: You need to change "$PS1" variable in shell.

[lih307@altair1 ~]$ PS1="New Prompt:"
New Prompt:

Detailed information about how to change the prompts:

http://www.cyberciti.biz/tips/howto-linux-unix-bash-shell-setup-prompt.html
http://www.linuxselfhelp.com/howtos/Bash-Prompt/Bash-Prompt-HOWTO-2.html

Attention: The changes you make in command is just for the current session, which means you will get default prompts next time when you log into the system again. In order to change prompts every time you log into the system, you need to modify ".bashrc" file, which is in your home directory as a hidden file.

Last Modified: April 28, 2009