Sometime today, Anshul Gupta wrote:
That would give me home directory, what I am looking for is present working directory for a particular user.
Okay, got it. Figure out the PID of the shell the user is using (use ps). Then (assuming the PID of the user's login shell is 2547),
(cd /proc/2547/cwd; pwd)
That should give you the wd of the user. Look at the ps manpage to see how you can extract the users' login shell PID.
Manish