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

2020-09-01 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

os.access is a think wrapper around C APIs (access(2), faccessat(2)).

I don't think this is a bug in Python, a shell command like "test -r /opt/xray" 
will almost certainly give the same result.

--
nosy: +ronaldoussoren

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2020-08-31 Thread Michael Pelletier


New submission from Michael Pelletier :

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 "", line 1, in 
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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com