Login as TeamsServer system user
To just look at log files etc. I usually use either

sudo less /path/to/log/file


or (in case I need root access longer) run sudo -s to get a root shell.

To run processes as another user you can use 

sudo -H -u _teamserver cmd-to-run


And finally, to simulate a login there is

sudo -H -u _teamserver -i