My situation: I set up an Ant build process on a suse server, and multiple developers have access to the server. There is only one user defined for the build process, so all the devs use that build user - things get a little messy when the automated emails come out to everyone but nobody knows who the build messages are for.
I'd like to capture the username (or the workstation name) of the remote user that was used to trigger the build process. I'm looking at the "last" command but there's one drawback: it seems to log "127.0.0.1" as the remote login if someone uses VNC to connect to the graphical login, so I'm sort of stuck on this part.
Can anyone recommend something for this situation?