On this page
  1. posix.chown
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posix.chown

Prev: posix.chmod | Up: posix | Next: posix.chroot
Rel: posix.abort, posix.access, posix.chdir, posix.chflags
Ref: docs.python.org — posix.chown
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import chown

Signature & Overview

posix.chown(path, uid, gid, *, dir_fd=None, follow_symlinks=True)

Change the owner and group id of path to the numeric uid and gid.

Usage

import os

# Unix numeric uid/gid ownership change; pass -1 to leave unchanged
assert callable(os.chown)

Gotchas

REPL Inspect

from posix import chown
help(chown)

Linked from

Related notes