I need to find a way to execute sudo dansguardian -r from a .net core web app. I am not that well familiar with linux so any work around to have the same effect as running the command above from c# is acceptable. I basically need dansguardian to reload configuration files after they have been edited from an asp web app. But I believe sudo will require credentials so how do I pass those in?
Edit for the people that have expresses security concerns. The web app is for admin use. Everything the user is able to do from the web ui he should already be able to do manually using putty and ssh.