ID EN
OS

fchown

Python 3.11

Change the owner and group id of the file given by fd to the numeric uid and gid. To leave one of the ids unchanged, set it to -1. See chown(). As of Python 3.3, this is equivalent to os.chown(fd, uid, gid).

Syntax

PYTHON
os.fchown(fd, uid, gid)

See Also

chown() auditing event Availability WebAssembly platforms