Skip to content

Document --unsafe-perm for all unix systems #931

Closed

Description

@pantharshit00

In my testing and reports by many users, npm requires --unsafe-perm if an install script if trying to modify data and it has root permissions.

So we do need to document this properly. This is also important as it is the install step.

Activity

  1. LongLiveCHIEF commented on Nov 14, 2019

    @LongLiveCHIEF

    This is a non-starter. This particular setting is disallowed in most platforms, and if it's not, then when the uid/gid switches to root, the process will crash because that setting is disallowed.

    This is a container/cloud policy driven world these days.

    On top of that, having the download of this binary happen outside of the package manager installation is also likely to fail, because these same types of environments generally don't have connections to the internet.

    My thought is that you should really close this issue and instead open a new one "Find more secure and configuration/policy friendly way to install platform binary"

    I'd hate for such a promising platform to fail to get traction because of something so central to it's design not being compatible with modern Infrastructure and security policies.

  2. LongLiveCHIEF commented on Nov 14, 2019

    @LongLiveCHIEF

    I opened #938, which I believe should preempt and close this issue.

  3. pantharshit00 commented on Nov 15, 2019

    @pantharshit00
    ContributorAuthor

    Thanks, I agree with you.

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