I'd like to automate one job in hudson, but hudson always uses the user
hudson to run the scripts. What I want is to run the script as another user.
I've looked through ServerFault answers, but only found a solution that uses the
su command, which requires me to type in target user's password. This will not work for automated scripts.
Could anyone help with this one? Thanks.