baweaver / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Get working directory of another user process? #350

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is it possible to get the working directory of the process started by another 
user?

>>> p = psutil.Process(OTHER_USER_PROCESS_ID)
>>> p.getcwd() 
AccessDenied Exception

Original issue reported on code.google.com by richar...@gmail.com on 23 Jan 2013 at 1:53

GoogleCodeExporter commented 8 years ago
You need to have adequate permissions to access the information from another 
process, e.g. Administrator or root user privileges would probably do it. It's 
hard to give any better advice since you don't mention what platform, version 
of Python, or version of psutils you're working with. 

For the future, issues like this are much better addressed through the mailing 
list (https://groups.google.com/forum/?fromgroups#!forum/psutil)  rather than 
the bug tracker. 

Original comment by jlo...@gmail.com on 23 Jan 2013 at 2:25

GoogleCodeExporter commented 8 years ago
OK, will post on forum with system details

Original comment by richar...@gmail.com on 23 Jan 2013 at 2:38