stat

Darwin

Get user, group owner of a file
stat -f %Su <filename>
stat -f %Sg <filename>