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

posix.chroot

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


Import

import posix
from posix import chroot

Signature & Overview

posix.chroot(path)

Change root directory to path.

Usage

import os

# Unix privileged syscall changing process root directory
assert hasattr(os, 'chroot') or True

Gotchas

REPL Inspect

from posix import chroot
help(chroot)

Linked from

Related notes