Skip to content

rustup install fails when rustup-init is owned by another user #1638

@nlfiedler

Description

@nlfiedler

Not sure if this is a rustup or Homebrew rustup-init issue, but I found that installing rustup-init using Homebrew, and then running rustup-init as a different user resulted in a permissions error (shown below). The result was that rustup would install toolchains, but never set up the binaries in ~/.cargo/bin.

Current installation options:

   default host triple: x86_64-apple-darwin
     default toolchain: stable
  modify PATH variable: yes

1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
>

error: failed to set permissions for '/Users/p4nathan/.cargo/bin/rustup'
info: caused by: Operation not permitted (os error 1)

Changing the ownership of /usr/local/bin/rustup-init to the user running rustup averted the issue and everything installed as expected. Maybe I'm weird in that I want one installation of rustup-init but have multiple accounts on the same system using rustup. At least for now I can work around this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions