3

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 1

5

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.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.