Error In Locking Authority File /home/ubuntu/.xauthority
Base Search for: Search Error in locking authority file When trying to connect using ssh, if you see a similar error to the following in the status log /usr/X11R6/bin/xauth: error in locking authority file $HOME/.Xauthority This issue typically occurs for one of several reasons Out of disk space: If your user has a disk quota, or your disk is full, the xauth program will not be able to write to the .Xauthority file. Try freeing up disk space on your system File permissions are wrong: The file permissions on .Xauthority must be 400 (read and write for user ONLY). Any other file permission will cause the xauth program to reject the file As a final measure you can try deleting the .Xauthority file altogether. The file will be recreated the next time you log in with ssh About Us Company Info Products Other StarNets Contact Us Support Knowledge Database Open a Support Case Purchase Online Store Get a Quote Partners & Resellers Educational Licensing Try It FastX X-Win32 News StarNet Adds Secure Remote Linux and Unix Desktops to X-Win32 StarNet's FastX Lets Users See Their Remote Linux Desktop Without Logging In X Windows Connectivity Leader StarNet Adds Secure Session Sharing to FastX StarNet Communications provides world class, affordable emulator solutions for connecting to remote Linux and remote Unix desktops and applications. X-Win32 was rated the industry’s best PC X server and offers the most innovative features. It is also the fastest X11 emulator on 32 and 64-bit Windows PCs when connecting on a LAN. FastX is a next-generation X Windows solution that offers persistent connections so you can disconnect and reconnect to your remote Linux desktop. FastX offers high speed performance, especially over VPN and other Internet connections. StarNet’s innovative X emulator products offer the most secure connections and simplest user interface of any PC X Server. If you are looking for persistent, high-speed, secure connection capabilities, download a free 30-day demo today. StarNet Communications, Sunnyvale, California USA
Nov 1 13:42:52 2011 from 10.10.56.100 /usr/bin/xauth: error in locking authority file /home/matty/.Xauthority I haven't seen this one before, but based on previous "locking issues" I've encountered in the past I ran strace against xauth to see if an old lock file existed: $ strace xauth In the output I saw the following which confirmed my suspicion: open("/home/matty/.Xauthority-c", O_WRONLY|O_CREAT|O_EXCL, 0600) = -1 EEXIST (File exists) A quick check with ls revealed the same thing: $ ls -l /home/lnx/matty/.Xauthority* -rw------- 2 matty SysAdmins 0 Nov 1 13:42 /home/lnx/matty/.Xauthority-c https://www.starnet.com/xwin32kb/error-in-locking-authority-file/ -rw------- 2 matty SysAdmins 0 Nov 1 13:42 /home/lnx/matty/.Xauthority-l I removed both of the lock files and haven't seen the error again. Thought I would pass this on in case someone else encountered this issue. matty on November 1, 2011 | Filed Under Linux Debugging, Linux Utilities 4 Comments swirl on November 3rd, 2015 Thanks, this was very helpful! sagar on September http://prefetch.net/blog/index.php/2011/11/01/dealing-with-xauth-error-in-locking-authority-file-errors/ 9th, 2016 this made my day… thanks frnd sagar on September 9th, 2016 I had one more issue before: no permission on /home/oracle/.Xauthority sagar on September 9th, 2016 I had one more issue before: no permission on /home/oracle/.Xauthority i have done: group for oracle folder was root under /home su - oracle cd /home chown oracle:dba oracle then I deleted .Xauthority-c .Xauthority-l from /home/oracle it worked for me Leave a Comment Username (required) : Email (required) : Web Site : Comment : Search Search for: Categories AIX Debugging (1) AIX Package Management (2) Apache (29) Apple (27) Articles, Presentations and Certifications (43) Book Reviews (1) Brocade (8) cfengine (5) Debian Linux (1) Djbdns (1) DNS & BIND (16) Docker (1) Emulex (3) Firefox (3) Food and Beverages (1) FreeBSD Misc (2) FreeBSD Networking (1) FreeBSD Utilities (2) FreeNAS (1) Gadgets (2) Games (1) Ganglia (1) Gardening (1) Gnome (4) GNU Privacy Guard (4) Hardware (13) Health Foods (2) Home Security (1) HTTP (4) Illumos (1) Investing (2) ISC DHCP (3) Java (12) Libvirt (1) Links (15) Linux Authentication (1) Linux Debugging (16) Linux Gluster (8) Linux
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta http://unix.stackexchange.com/questions/215558/why-am-i-getting-this-message-from-xauth-timeout-in-locking-authority-file-ho Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Unix & http://serverfault.com/questions/441726/avoid-usr-bin-xauth-error-in-locking-authority-file-home-user-xauthority Linux Questions Tags Users Badges Unanswered Ask Question _ Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. error in Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Why am I getting this message from xauth: “timeout in locking authority file /home/
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top Avoid /usr/bin/xauth: error in locking authority file /home/user/.Xauthority up vote 4 down vote favorite In batch scripts I often log in to the same system through ssh multiple times. E.g. seq 1000 | parallel -j0 -S server echo This triggers a race condition giving the error: /usr/bin/xauth: error in locking authority file /home/user/.Xauthority How can I avoid this? ssh login locking share|improve this question asked Oct 24 '12 at 11:16 Ole Tange 1,16231124 add a comment| 2 Answers 2 active oldest votes up vote 6 down vote accepted Try to not forward X when you log in with ssh. You shouldn't really need it, do you? If you do not want to take out ForwardX11 true from your ~/.ssh/config (I am guessing that's where it got set), you can try adding -x to the command line. seq 1000 | parallel -j0 -S server -x echo share|improve this answer answered Oct 24 '12 at 11:36 chutz 5,1541442 add a comment| up vote 2 down vote You could disable X-forwarding in your SSH config for this server. For instance in your $HOME/.ssh/config you could have Host server ForwardX11 no share|improve this answer answered Oct 24 '12 at 11:35 Dmitri Chubarov 1,8811820 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your