ID EN
OS

lchown

Python 3.11

Change the owner and group id of path to the numeric uid and gid. This function will not follow symbolic links. As of Python 3.3, this is equivalent to os.chown(path, uid, gid, follow_symlinks=False).

Syntax

PYTHON
os.lchown(path, uid, gid)

See Also

auditing event Availability path-like object