Skip to main content

Library to manage ProFTPD.

Project description

python3-cyberfusion-proftpd-support

Library to manage ProFTPD.

At the moment, this library allows you to create auto-expiring ProFTPD users (stored in an SQLite database).

Install

PyPI

Run the following command to install the package from PyPI:

pip3 install python3-cyberfusion-proftpd-support

Debian

Run the following commands to build a Debian package:

mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -uc

Configure

Place settings in /etc/proftpd-support.conf (regular text file).

All settings must be prefixed with PROFTPD_SUPPORT_.

Find all available settings in settings.py.

Find an example config in .env.local.

Usage

from cyberfusion.ProftpdSupport.users import create_proftpd_user

user = create_proftpd_user(
    username="example",
    password="$2b$12$sDnzo8pxCvX05NEBhlBXPuhgPFb6mO.AGwq9yU64eZxOKHuhe4OqC",
    uid=1000,
    gid=1000,
    home_directory="/home/example",
)

⚠️ You must hash the password yourself. You can use ftpasswd for this.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python3_cyberfusion_proftpd_support-1.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file python3_cyberfusion_proftpd_support-1.1.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_proftpd_support-1.1.tar.gz
Algorithm Hash digest
SHA256 393aedb783d9b5298ad03b9445ebfde147dcf7212b00c2696f20fd77c7e42fa7
MD5 349e58a76742e3a5c18ad18563f8c0e0
BLAKE2b-256 e158ae2cad7b7f044217c44d1313f0ce5be65646fe9b83eeece8591e906a7b4f

See more details on using hashes here.

File details

Details for the file python3_cyberfusion_proftpd_support-1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for python3_cyberfusion_proftpd_support-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 00dc23e8cc09f8099e3f3d1c4d2e5a65a2693ca848e4fcd6cfb5db9a12702b25
MD5 916106d1164156fa73231d7eae015423
BLAKE2b-256 a6f37c35fadc50ecae9d5f828502329dae32513cd66cf8e3331c9eab9762c73b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page