It may sound obvious but there is a permissions problem.
The issue is that once you license an agent (including
temoprary licenses) the user mapping goes into effect.
To help debug this you should add a:
before the "autolic ..." line to see what effective permissions
you have on the remote server. Chances are they are not what
you need to update the license file (e.g. on Unix servers you
need to have root permissions).