New submission from Raymond Sit <raysit...@gmail.com>:

`tempfile.TemporaryDirectory` always creates the directory with 0o700 
permissions. So other applications which could run as a different user (i.e. 
root) cannot access the directory.

To improve the usability I would like to add the option to set the permissions 
of the directory.

Proposed Change is in the PR linked 
(https://github.com/python/cpython/pull/22451)

----------
components: Library (Lib)
files: tempfile.py
messages: 377667
nosy: ray-sit
priority: normal
pull_requests: 21480
severity: normal
status: open
title: tempfile.py TemporaryDirectory/mkdtemp defaults to mode 0o700, propose 
to add mode argument
type: enhancement
versions: Python 3.10
Added file: https://bugs.python.org/file49477/tempfile.py

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue41884>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to