Results 1 to 7 of 7

Thread: Invalid MIT-MAGIC-COOKIE-1 key

  1. #1

    Default Invalid MIT-MAGIC-COOKIE-1 key

    It can be disabled by
    Code:
    xhost +
    Invalid MIT-MAGIC-COOKIE-1 key  access control disabled, clients can connect from any host
    It's solved until logout only but I need it to be permanent.
    Second, is it secure solution ?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,400

    Default Re: Invalid MIT-MAGIC-COOKIE-1 key

    Sorry, but to me it is not clear what your problem is. The title says "Invalid MIT-MAGIC-COOKIE-1 key", but you do not explain if you typed it somewhere, and what you then expected, or if you got that somewhere and if it blocks you to dosomething (what?) you want.

    Please try to understand that we are not looking over your shoulder, nor are we involved until now it what you try to achieve, thus a bit explanation might be useful.
    Henk van Velden

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,897
    Blog Entries
    3

    Default Re: Invalid MIT-MAGIC-COOKIE-1 key

    I cannot guarantee that this will work. But it worked for me.
    1. logout from your desktop session.
    2. Use CTRL-ALT-F1 to get to a command line
    3. Login at the command line
    4. Code:
      rm .Xauthority
    5. logout
    6. Use CTRL-ALT-F7 to get back to desktop login screen
    7. Login


    That's it. Apparently different display managers use different formats for the xauth cookie, and complain when they find one that they don't like. If you switch display manager, the problem might occur again.
    openSUSE Leap 15.1; KDE Plasma 5;
    testing Leap 15.2Alpha

  4. #4
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,499
    Blog Entries
    2

    Default Re: Invalid MIT-MAGIC-COOKIE-1 key

    General rule of thumb is to avoid using xhost if you're concerned about security.
    A few recent years ago in fact, its functionality was severely scoped (restricted) in new ways to block at least the worst compromises, but unsurprisingly that also killed a number of ways it was commonly used.

    Expect more possible changes in the future,
    So if you're creating something that can be expected to still work in the future, try to find a different way to do what you need.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  5. #5

    Default Re: Invalid MIT-MAGIC-COOKIE-1 key

    Quote Originally Posted by tsu2 View Post
    General rule of thumb is to avoid using xhost if you're concerned about security.
    A few recent years ago in fact, its functionality was severely scoped (restricted) in new ways to block at least the worst compromises, but unsurprisingly that also killed a number of ways it was commonly used.

    Expect more possible changes in the future,
    So if you're creating something that can be expected to still work in the future, try to find a different way to do what you need.

    TSU
    Thank you, I'll try to find another solution.

  6. #6

    Default Re: Invalid MIT-MAGIC-COOKIE-1 key

    Quote Originally Posted by nrickert View Post
    I cannot guarantee that this will work. But it worked for me.
    1. logout from your desktop session.
    2. Use CTRL-ALT-F1 to get to a command line
    3. Login at the command line
    4. Code:
      rm .Xauthority
    5. logout
    6. Use CTRL-ALT-F7 to get back to desktop login screen
    7. Login


    That's it. Apparently different display managers use different formats for the xauth cookie, and complain when they find one that they don't like. If you switch display manager, the problem might occur again.
    Thank you. I'm sorry I can't use that because home folder is encrypted in img file and all files are deleted after log out.

  7. #7

    Default Re: Invalid MIT-MAGIC-COOKIE-1 key

    Quote Originally Posted by hcvv View Post
    Sorry, but to me it is not clear what your problem is. The title says "Invalid MIT-MAGIC-COOKIE-1 key", but you do not explain if you typed it somewhere, and what you then expected, or if you got that somewhere and if it blocks you to dosomething (what?) you want.

    Please try to understand that we are not looking over your shoulder, nor are we involved until now it what you try to achieve, thus a bit explanation might be useful.
    Apology for poor describing issue.

    Invalid MIT-MAGIC-COOKIE-1 key is output in xterm or xfce4-terminal when I run various program there.

    It causes problems when trying to call programs in script. (program can't be called)

Posting Permissions

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