I have an Android tablet that I got a terminal program from Google Play Store. When I issue the "ps" command, it shows various names for the users running the processes. There is no /etc/passwd file on this machine so I'm wondering where it gets the user names from.
1 Answer
ps will get the names with the getpwuid(3) function (see here).
On android, that will generate pwd entries on the fly, rather than fetching them from some file.