Skip to main content

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_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

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

Release files for ws.webpasswd 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ws.webpasswd 2.2.0
File Size Uploaded
ws.webpasswd-2.2.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ws.webpasswd 2.2.0
File Interpreter ABI Platform
ws.webpasswd-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / ws.webpasswd-2.2.0.tar.gz

Download URL ws.webpasswd-2.2.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5b344aaba47d865ea698889f7932a6850b4e508ad9547e27f1cb67292d90913f
BLAKE2b-256 checksum
How to use checksums
1d1ed40af9d1783751c41e132eeb5a753ae18964951dfc2f2b9a0f7a4875e47d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.3

Release files / ws.webpasswd-2.2.0-py3-none-any.whl

Download URL ws.webpasswd-2.2.0-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94f31cb55d89dfa00cdb50c8e8c81386ff8e752a47b90067062ed865a16f9419
BLAKE2b-256 checksum
How to use checksums
a8dbd9d3120e14fa65e94a7f131d0dd908cc10b23f643d68a142c87d3c28b61d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-httpx/0.23.3

Release history Release notifications | RSS feed

This release

2.2.0 This release

2 release files

2.1.0

2 release files

2.0.1

1 release file

2.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page