Skip to content

macOS 10.13 doesn't have /usr/X11R6 and SIP prevents symbolic linking #18

Closed

Description

@47ronin
$ sudo ln -s /opt/X11 /usr/X11R6
ln: /usr/X11R6: Operation not permitted

Some believe this error occurs because System Integrity Protection is in place.

A few applications that rely on ssh-askpass give the error:
ssh_askpass: exec(/usr/X11R6/bin/ssh-askpass): No such file or directory

My workaround fails due to inability to create the symbolic link. Can the path instead be changed to something other than /usr/X11R6?

Please see desktop/desktop#852 (comment)

Activity

  1. theseal commented on Oct 9, 2017

    @theseal
    Owner

    The old solution base on links is no longer supported (even if still possible by disabling SIP, creating the link and then enabling SIP again). The only supported way to run ssh-askpass is to run it through launchd preferable through brew services.

  2. 47ronin commented on Oct 10, 2017

    @47ronin
    Author

    One new workaround: System Integrity Protection is a good security feature and doesn't need to be disabled in macOS 10.13+ to keep ssh_askpass working. Steps:

    • (Re)install xquartz:
      $ brew reinstall xquartz

    This will officially recreate the /usr/X11R6 directory without disturbing SIP.

    Next:

    $ cd /usr/X11R6/bin
    $ sudo ln -s /usr/local/bin/ssh-askpass ssh-askpass
    
  3. simmel commented on Oct 11, 2017

    @simmel
    Collaborator
  4. ximet commented on Nov 18, 2017

    @ximet

    not working for me. Brew don't install xquartz and after all command broken

  5. simmel commented on Nov 18, 2017

    @simmel
    Collaborator

    @ximet please use the supported way as documented in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions