jessety / pm2-installer

Install PM2 offline as a service on Windows or Linux. Mostly designed for Windows.
MIT License
494 stars 50 forks source link

How to run different apps as different users? #13

Open aventrax opened 4 years ago

aventrax commented 4 years ago

Sorry for opening a feature request, I cannot find a better place to ask.

I'd like to be able to run pm2 as a particular user, that's because I need to access UNC paths using node. Is it possibile to do that?

In my dreams pm2 running as Local Service with different apps running by different users, keeping the pm2 service accessible and controllable by multiple admin users (or a group of users). But I think this will remain a dream, right?

Thanks

jessety commented 3 years ago

There isn't a way to do this currently. I would love to scope it out at some point in the future, though!

andrisi commented 3 years ago

Would be usefule to use pm2 to run GUI apps too... I'd love to see a feature where pm2 is run (only) when a certain user is logged in. Thanks.

Nubebuster commented 1 year ago

Call it an enhancement. I've wasted my time installing this and now my windows permissions are broken. After following the uninstall instructions including desconfigure, normal pm2 doesn't work either anymore. Can't use this machine anymore...

andrisi commented 1 year ago

@Nubebuster maybe going back to an earlier Windows restore point helps?

mojoaxel commented 1 year ago

@jessety We can not use the "Local Service". Is there some workaround to run the pm2 windows service with a different user?

I'm also happy to help fixing this but I would need some guidance on how to start.

monocounty commented 6 months ago

Going to have to go back to some other way to do this. Cannot use Local Service.

monocounty commented 6 months ago

It's frustrating that most other Window-based resources for starting PM2 on OS startup are now advocating for use of pm2-installer, but then this only works if your app does not need access to resources outside of the local machine, or other user rights.

ChaseMurtaugh commented 3 months ago

This is a pretty necessary feature for us. I need to be able to specify specific users like normal PM2. We have net drives and what not that require specific users, not just the local service.