Run and debug your applications with elevated privileges
To elevate privileges for an application process, navigate to the Run/Debug Configurations dialog (Run | Edit Configurations), click the configuration of your application, and select the Run with sudo checkbox.