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

posix.chmod

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


Import

import posix
from posix import chmod

Signature & Overview

posix.chmod(...)

Change the access permissions of a file.

Usage

import os

# Use octal literals like 0o600 / 0o755 via os.chmod()
assert callable(os.chmod)

Gotchas

REPL Inspect

from posix import chmod
help(chmod)

Linked from

Related notes