I'm trying to open an app that listens to port 25 within a shell script. In order to listen to port 25, I need to run the app with sudo
. So I tried the following:
sudo open appThatNeedsPort25
It asks me for my password and opens the app. Problem is the app is NOT being run as root, so it is unable to listen to port 25...
What do I do to open an app from a shell script so that it can listen to port 25?