0

I have a web application running on Tomcat7 and apache Httpd server. I have a use case to run a command as remote or client user on the web server whose user account is different from remote user accounts. Currently I am handing this requirement by running web server as root user and allowing root user to sudo as remote user for executing the commands on server side.

Please let me know if you have any better and secure ways to handle this.

Thanks.

user1360733
  • 85
  • 4
  • 6
  • Running your webserver as root is dangerous. Look into using the `sudoers` file and allowing a standard account to execute the commands you need as a different user. – arco444 Jul 24 '14 at 16:48
  • Thanks for update! I am looking for ways without doing sudo by server. – user1360733 Jul 25 '14 at 02:06

0 Answers0