Parse the longname which is the output of 'ls -l' and set the owner and group if we are talking to an openssh server.