Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get working directory of another user process? #350

Closed
giampaolo opened this issue May 23, 2014 · 2 comments
Closed

Get working directory of another user process? #350

giampaolo opened this issue May 23, 2014 · 2 comments

Comments

@giampaolo
Copy link
Owner

From richar...@gmail.com on January 23, 2013 02:53:44

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: http://code.google.com/p/psutil/issues/detail?id=350

@giampaolo
Copy link
Owner Author

From jlo...@gmail.com on January 22, 2013 18:25:13

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.

Status: Invalid

@giampaolo
Copy link
Owner Author

From richar...@gmail.com on January 22, 2013 18:38:01

OK, will post on forum with system details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant