[New-bugs-announce] [issue41677] os.access() doesn't recognize lack of permissions on an SMB mountpoint

Michael Pelletier report at bugs.python.org
Mon Aug 31 11:29:10 EDT 2020


New submission from Michael Pelletier <mvpel at yahoo.com>:

This emerged during a fault in a fileserver mounted on a Linux machine via a Samba client mount. The access to the mountpoint was being blocked by the fileserver, but os.access() wasn't able to recognize it as unreadable:

>>> os.access('/opt/xray', os.R_OK)
True
>>> s = os.stat('/opt/xray')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
PermissionError: [Errno 13] Permission denied: '/opt/xray'
>>>

Python version is 3.6.8.

----------
components: IO
messages: 376156
nosy: mvpel
priority: normal
severity: normal
status: open
title: os.access() doesn't recognize lack of permissions on an SMB mountpoint
type: behavior
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41677>
_______________________________________


More information about the New-bugs-announce mailing list