Add sudo support

This wraps the command to be executed with a call to `sudo -u` using the
appropriate sudo user.