[issue41884] tempfile.py TemporaryDirectory/mkdtemp defaults to mode 0o700, propose to add mode argument

2020-12-30 Thread Raymond Sit


Change by Raymond Sit :


--
resolution:  -> wont fix
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue41884] tempfile.py TemporaryDirectory/mkdtemp defaults to mode 0o700, propose to add mode argument

2020-09-29 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

You can change permissions after creating the directory.

The C function mkdtemp() creates the directory with permissions 0o700.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue41884] tempfile.py TemporaryDirectory/mkdtemp defaults to mode 0o700, propose to add mode argument

2020-09-29 Thread Raymond Sit


New submission from Raymond Sit :

`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 

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