[New-bugs-announce] [issue27687] Linux shutil.move between mountpoints as root does not retain ownership

jort bloem report at bugs.python.org
Thu Aug 4 16:44:42 EDT 2016


New submission from jort bloem:

When using shutil.move() between mounts (i.e. when it does a copy/delete), running as root, ownership should be maintained.

To test: log in as root, create a file owned by a regular user. In python, use shutil.move() to move it to another mountpoint. Check that the ownership of the moved file is the same as the ownership of the original file.

----------
components: Library (Lib)
messages: 272001
nosy: jort.bloem
priority: normal
severity: normal
status: open
title: Linux shutil.move between mountpoints as root does not retain ownership
type: behavior
versions: Python 2.7, Python 3.4

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27687>
_______________________________________


More information about the New-bugs-announce mailing list