[issue27687] Linux shutil.move between mountpoints as root does not retain ownership

2018-06-12 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27687] Linux shutil.move between mountpoints as root does not retain ownership

2016-08-09 Thread Antti Haapala
Antti Haapala added the comment: And as it is documented, it would be a change against documentation. However as a stop-gap it is rather trivial to make your own copy function to fix this. copy2 returns the actual destination, so you could do def copy_with_ownership(src, dest, *,

[issue27687] Linux shutil.move between mountpoints as root does not retain ownership

2016-08-08 Thread R. David Murray
R. David Murray added the comment: This is as documented (see copystat). To do anything with user and group would be an enhancement. -- nosy: +r.david.murray type: behavior -> enhancement versions: +Python 3.6 -Python 2.7, Python 3.4 ___ Python

[issue27687] Linux shutil.move between mountpoints as root does not retain ownership

2016-08-04 Thread jort bloem
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