Results 1 to 3 of 3

Thread: how to generate new .Xauthority file?

  1. #1
    Join Date
    Apr 2008
    Beans
    232

    how to generate new .Xauthority file?

    Hi!

    After i upgraded to 9.10 i've been getting errors when i start vncserver and startx

    Code:
    xauth:  timeout in locking authority file /home/server/.Xauthority
    now i just figured i'd delete the .Xauthority file from my home folder and generate a new one! Unfortunately i negated to find out HOW to do this before going ahead and deleting the file... D'oh! Can anyone please point me in the right direction?

  2. #2
    Join Date
    Nov 2009
    Location
    Chennai, India
    Beans
    116
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: how to generate new .Xauthority file?

    Hi,
    Code:
    xauth:  timeout in locking authority file /home/server/.Xauthority
    The above error occurs due to permissions issue. /home/server/.Xauthority might have had root permissions.
    Please start the vncserver as the user, instead of root or sudo.

    On creating a new .Xauthority file, the following commands can be issued:
    Code:
    karmic@karmic-desktop:~$ HOST=`hostname`
    karmic@karmic-desktop:~$ key=`perl -e 'srand; printf int(rand(100000000000000000))'`
    karmic@karmic-desktop:~$ key=$key$key
    karmic@karmic-desktop:~$ xauth add ${HOST}/unix:0 . $key
    xauth:  creating new authority file /home/karmic/.Xauthority
    xauth: (argv):1:  key contains odd number of or non-hex characters
    Hope this helps.
    Regards,
    Kiran Murari
    Open Thoughts | CSS OSS

  3. #3
    Join Date
    Apr 2008
    Beans
    232

    Re: how to generate new .Xauthority file?

    thanx kiranmurari

    i tried as you suggested but got the same error:
    Code:
    server@server:~$ HOST=`hostname`
    server@server:~$ key=`perl -e 'srand; printf int(rand(100000000000000000))'`
    server@server:~$ key=$key$key
    server@server:~$ xauth add ${HOST}/unix:0 . $key
    xauth:  timeout in locking authority file /home/server/.Xauthority
    but after realised that xauth would just create an .xauthority if one didn't exist so i changed the permissions of my home dir:
    Code:
    sudo chmod 777 /home/server/
    and when i started xauth it worked!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •