This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients eryksun, gps, gregory.p.smith, jaystrict, r.david.murray
Date 2015-10-27.16:12:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAGE7PN+YVp1r0ZYeqAKkcp1PbChueTU1ypEQacoRVD9bE4awdQ@mail.gmail.com>
In-reply-to <1445954755.45.0.788563308089.issue25481@psf.upfronthosting.co.za>
Content
Definitely a bug. The path search should silently skip directories it can't
access.

On Tue, Oct 27, 2015, 7:05 AM R. David Murray <report@bugs.python.org>
wrote:

>
> R. David Murray added the comment:
>
> So, two interesting questions: does this in fact match the behavior of
> os._execvpe, and does it match the behavior of the shell?  The latter would
> appear to be false, and could arguably be claimed to be a bug.  If we agree
> that it is, we need to learn what the behavior of the shell is in a bunch
> of corner cases (only inaccessible directories on path, only match is
> accessible but not executable, etc).
>
> If this is a bug I'd guess it applies to all supported python versions.
>
> Note that it should be possible to reproduce this using a single user, so
> I've changed the title accordingly.
>
> ----------
> nosy: +gps
> title: PermissionError in subprocess.check_output() when running as a
> different user (not login shell) -> PermissionError in
> subprocess.check_output() when an inaccessible directory on the path
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue25481>
> _______________________________________
>
History
Date User Action Args
2015-10-27 16:12:51gregory.p.smithsetrecipients: + gregory.p.smith, r.david.murray, eryksun, jaystrict
2015-10-27 16:12:51gregory.p.smithlinkissue25481 messages
2015-10-27 16:12:51gregory.p.smithcreate