Is there a library which does provide shutil.chown in Python2?
I know that this work around works:
import pwd import grp import os uid = pwd.getpwnam("nobody").pw_uid gid = grp.getgrnam("nogroup").gr_gid path = '/tmp/f.txt' os.chown(path, uid, gid)
Above code from: https://stackoverflow.com/a/5995007/633961
I don't want to use the above work-around, I prefer to reuse.