Gateway + Rider: How To Run Rider With Elevated Permissions?

I have some code that will need to run with root/sudo access. In the past, I've simply used sudo when starting Rider and then I was able to run the code and debug it inside of Rider.

Now I am using Gateway with Rider and the code is being executed on a different machine. I'm not able to run or debug the code now because it needs elevated permissions.

Can anyone tell me how to achieve this with Gateway and Rider?

0
1 comment
Hello,

There is a known issue with permission elevation. Please refer to GTW-2139:
https://youtrack.jetbrains.com/issue/GTW-2139/Elevation-for-remote-process-doesnt-work-Failed-to-launch-elevation-service-using-pkexec

If you would like to run the IDE as root, you can connect via SSH under the root user or manually start the IDE with elevated privileges using sudo. Please follow the server-to-client workflow:
https://www.jetbrains.com/help/rider/Remote_development-a.html#use_idea

For safety reasons, I recommend using a separate machine or container when working on the project as a root user.
0

Please sign in to leave a comment.