Execute a piece of code as another user