Skip to content

Spawn with Sudo Permissions? #222

Open
@FireController1847

Description

@FireController1847

At the moment, I require and run the module like so:

const git = require('simple-git/promise')(dir);

And I have another user on my system who uses the interchangeable dir variable. Issue is, my user doesn't have access to the other user, but sudo does. So how would I require git via sudo without launching the process under sudo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions