Found the answer, terminal cmds below.
These commands assume you're running Ubuntu 10, and have installed Resin via it's apt repositories.
In my case, www-data will be running authbind, with a userid of 33, which you'll see below:
# aptitude install authbind
# nano -w /etc/authbind/byuid/33
# chown www-data. /etc/authbind/byuid/33
# chmod 700 /etc/authbind/byuid/33
# nano -w /etc/init.d/resin
While editing /etc/init.d/resin, find:
start)
Below that, find:
su $USER
Delete that line, replace with:
su $USER -s /usr/local/bin/authbind --deep /bin/bash -c """$JAVA -jar $RESIN_HOME/lib/resin.jar $ARGS start""" 1>/dev/null 2>/dev/null
Find:
stop)
Below that, find:
su $USER
Delete that line, replace with:
su $USER -s /bin/bash -c """$JAVA -jar $RESIN_HOME/lib/resin.jar $ARGS shutdown""" 1>/dev/null 2>/dev/null
Write the file & exit (use CTRL+O, CTRL+X)
Now you need to edit resin config:
# nano -w /etc/resin/resin.xml
Make sure that your HTTP port is set to 80 (I believe it is as default, as Resin runs as rot by default), and make sure the following 2 lines are uncommented in the file as well:
www-data
www-data
Save & exit (CTRL+O, CTRL+X)
Now start Resin:
# service resin start