oschmod
Windows and Linux compatible chmod
Decision gist · record as of 2026-08-14
Yes, if you need cross-platform chmod on Windows and can accept an abandoned package. The code is stable (no known vulnerabilities, low install friction), and the problem it solves is real and unsolved by the standard library. However, verify that pywin32 remains compatible with your Windows version, and be aware that bugs or edge cases discovered after 2023 will not be fixed upstream.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- On Windows, requires pywin32 to be installed and functional; on Linux/macOS, relies on standard POSIX permission APIs.
- Low install friction; pure Python wheel with a single runtime dependency (pywin32).
- However, the package is abandoned—last release was 2020-10-30 and last commit 2023-01-16, so no active maintenance or bug fixes.
License · maintenance · safety
Apache Software License 2.0 (permissive) — Apache Software License 2.0 is permissive; you can use, modify, and distribute oschmod freely in commercial or private projects with minimal restrictions.
last release 2020-10-30 (2114 days) · last repo commit 2023-01-16 · 25 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 337,168 downloads/mo, #7,452 on PyPI
Alternatives
Verify before relying
pip install oschmod
import oschmod
oschmod.set_mode('myfile', 'u+rwx')
oschmod.set_mode('myfile', 0o700)- Whether pywin32 dependency is reliably maintained and compatible with current Windows versions.
- Whether the package works correctly with modern Python versions beyond 3.8 (classifiers list only up to 3.8).
- Real-world compatibility with Windows ACLs and how symbolic/octal modes map to actual Windows security descriptors.
What it is and what it does
oschmod bridges a critical gap: Python's os.chmod() silently fails on Windows, leaving file permissions unchanged while giving no warning or error. This package provides a cross-platform wrapper that translates chmod-style permissions (both symbolic like 'u+rwx' and octal like 0o700) into the underlying OS calls—using Windows security APIs on Windows, and standard POSIX chmod on Linux and macOS.
You can use it as a drop-in replacement for os.chmod() in your code, or invoke it from the command line with the familiar chmod syntax. It supports recursive permission changes with the -R flag and handles both individual file ownership and group-based permissions in a platform-consistent way.
Use it for
- Securing configuration files or private keys on Windows with the same permission model you'd use on Linux.
- Writing deployment scripts that set consistent file permissions across development, staging, and production machines running different OSes.
- Building cross-platform tools that need to enforce read/write/execute restrictions without platform-specific branching logic.
- Migrating shell scripts that use chmod to Python while maintaining the same permission semantics on all platforms.
- Setting up CI/CD pipelines that manage file permissions identically on Windows agents and Unix-based runners.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need cross-platform chmod on Windows and can accept an abandoned package.
The code is stable (no known vulnerabilities, low install friction), and the problem it solves is real and unsolved by the standard library. However, verify that pywin32 remains compatible with your Windows version, and be aware that bugs or edge cases discovered after 2023 will not be fixed upstream.
Install
oschmod on PyPI
Before you install
Low install friction; pure Python wheel with a single runtime dependency (pywin32). However, the package is abandoned—last release was 2020-10-30 and last commit 2023-01-16, so no active maintenance or bug fixes.
On Windows, requires pywin32 to be installed and functional; on Linux/macOS, relies on standard POSIX permission APIs.
License in practice
Apache Software License 2.0 is permissive; you can use, modify, and distribute oschmod freely in commercial or private projects with minimal restrictions.
Quickstart
pip install oschmod
import oschmod
oschmod.set_mode('myfile', 'u+rwx')
oschmod.set_mode('myfile', 0o700)
Verify before relying
- Whether pywin32 dependency is reliably maintained and compatible with current Windows versions.
- Whether the package works correctly with modern Python versions beyond 3.8 (classifiers list only up to 3.8).
- Real-world compatibility with Windows ACLs and how symbolic/octal modes map to actual Windows security descriptors.
Package facts
| License | Apache Software License 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 1 packagepywin32 |
| Maintenance | Abandoned 2,114 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 337,168 / month, #7,452 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.6Programming Language :: Python :: 2.7Programming Language :: Python :: 3Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Utilities |
Evidence: oschmod-0.3.12-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “cross-platform file permissions”
- oschmodSets file permissions consistently across Windows, Linux, and macOS…
- winaclParses and manipulates Windows security descriptors, ACLs, and ACEs…
- flake8-executableA Flake8 plugin that detects and reports mismatches between Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Utilities packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.
Install it if you need to display or transform source code.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
See also path.py · dry-rest-permissions · path · djangorestframework-guardian · pathtools · exit-codes · filelock · win32-setctime · doccmd · lockfile