Web-based UNIX password change
This packages provides a web UI for the UNIX passwd command, e.g. so that SFTP-only user accounts can still change their password.
Usage
Set up your webserver to run the CGI script. Here’s an example apache configuration snippet:
ScriptAlias /passwd /path/to/venv/bin/webpasswd-cgi
As changing the password for another user requires root access, you also need to setup passwordless sudo execution for the webpasswd-change helper. Add a rule like this, e.g. in /etc/sudoers.d/webpasswd:
www-data ALL=NOPASSWD:/path/to/venv/bin/webpasswd-change
(www-data means the user the webserver executing the CGI script runs as.)
You can pass the following environment variables to the CGI script:
- WEBPASSWD_CHANGE:
Path to webpasswd-change helper. If unset, assumes a virtualenv installation (so it’s located next to webpasswd-cgi)
- WEBPASSWD_SUDO:
Path to sudo binary. There seems to be a file descriptor polling bug in sudo-rs causing it to hang, so set this to sudo.ws as a workaround.
- WEBPASSWD_STYLESHEET:
URL to a stylesheet to link to instead of using the built-in styles
Running tests
You’ll need to add a user account webpasswd, and interactively during the test run reset its password as instructed.
CHANGES
ws.webpasswd 2.3.0 (2026-11-13)
Changes
Make sudo binary configurable (sudo)
2.2.0 (2024-06-03)
Changes
stdin: Transmit password via stdin instead of cli parameters (stdin)
2.1.0 (2023-04-04)
Changes
Update to python-pam 2.0 API (pam)
Drop Python-2 support (py2)
Switch from setup.py to pyproject.toml (wheel)
2.0.1 (2018-03-05)
Handle PATH_INFO internally
2.0.0 (2018-03-04)
Rewrite using python-pam, Flask, Python-3 compatible, pip-installable.
1.0.0 (2008-07-10)
First working version, using PyPAM.so and webpy.org
Metadata
Release files for ws.webpasswd 2.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ws_webpasswd-2.3.0.tar.gz | 6.7 kB | Without provenance | Details for ws_webpasswd-2.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ws_webpasswd-2.3.0-py3-none-any.whl | Python 3 | none | any | Details for ws_webpasswd-2.3.0-py3-none-any.whl |
Total release size: 14.9 kB
Release files / ws_webpasswd-2.3.0.tar.gz
| Download URL | ws_webpasswd-2.3.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
de66ad9a3083e37937d5f360b0a9cf278fe0d45b9d034c0827a6ebc22bf3a8ac
|
|
BLAKE2b-256 checksum How to use checksums |
a5140533a943bedad59e98d351f943ce0da1dea12c4c920b5c2560cefbd3f8d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"6.8.0-147-generic"}} HTTPX2/2.5.0
|
Release files / ws_webpasswd-2.3.0-py3-none-any.whl
| Download URL | ws_webpasswd-2.3.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b65efa59429ffdbece2152ea5d85f7bf670dcae462f3ce5cb01bd6c47f2d6183
|
|
BLAKE2b-256 checksum How to use checksums |
cc275d0a35cf10b543b541baa7a23258a271dde85db7a4a4d1743a561cb99eb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.18.1 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.18.1"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"6.8.0-147-generic"}} HTTPX2/2.5.0
|
Security for ws.webpasswd 2.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.