On this page
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
- Import via
os.chmodorPath.chmod().
REPL Inspect
from posix import chmod
help(chmod)
Linked from
Related notes
- tuts/python3/stdlib_module/posix/abort Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chflags Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chown Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/chroot shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/close shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/closerange shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/confstr shared tags: #posix, #stdlib