@Woogs I think @alessandrogario is right. The Linux user_groups.cpp uses getpwuid() to look up instances where your query is using a uid=# clause. The Linux version of getpwuid opens the password file and returns on the first instance it finds. If you moved your new user above root in the file, I'm pretty sure you'd find your first query will return the new user id.