Discussion in 'OT Technology' started by Rob Jones, May 15, 2007.
does anyone know how to make a startup script but run the app as a certain user?
su - "user" "command/script" you want to run
man su for slighlty more info.
make sure you source the environment you want like
su - mikehunt "/home/mikehunt/.bash_profile;/opt/APP/bin/application"
so simple. i'm not thinking tonight
I have nothing useful to contribute to this thread.
do you want it to run everytime the user logs in?
assuming user is using bash, you can put whatever commands in:
Excuse me? Who are you?