VCL sets up a userid / password for the end-user to login via SSH. I
was wondering how an image can reliably get that userid inside an init
script? Unfortunately, currentimage.txt has just computer
information, but no user= stanza to tell me who is currently using the
image (if anyone). My current technique is ENDUSER=$(ls -1 /home |
tail -n 1). If I've created other userids with home directories I
explicitly exclude them using something like ENDUSER=$(ls -1 /home |
grep -Ev "(^user$|^vncuser$|^winer$)" | tail -n 1).