Sometime today, Anshul Gupta wrote:
That would give me home directory, what I am looking for is present working directory for a particular user.
I think every instance of the shell has its own current working directory. Can you tell what's the purpose of finding the wd of every user? Perhaps we can find other (better) ways of solving your problem.
Manish