Added another alternative to get the name of the user with posix_getpwuid()