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.
Shell – From where does “ps” on Android get user names
androidlinuxpsshell
Best Answer
ps
will get the names with thegetpwuid(3)
function (see here).On android, that will generate pwd entries on the fly, rather than fetching them from some file.