How can I get get the owner name and group name of a file on a Linux filesystem using C++? The stat() call only gives me owner ID and group ID but not the actua
stat()
One way would be to use stat() to get the uid of a file and then getpwuid() to get the username as a string.