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.2.tar.gz (3.3 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.2.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_proftpd_support-1.1.2.tar.gz
Algorithm Hash digest
SHA256 48588c08f70ff8a3a59844f8574f250ce1e4dd12a2a91fde2378e9afed3f7b51
MD5 47b64674347c82cc6e6aef9a960b45d2
BLAKE2b-256 e1a50cf08703731680721bf27f23a4235894069fb2db2fa9d96c3353db6ec7ee

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python3_cyberfusion_proftpd_support-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bfac5eee51cbe960d77cfe88d574dacac52e76aa043c0eac152926e4d9c44e14
MD5 df922dd27163bcd81ac3582cfb63f431
BLAKE2b-256 8736f819df2ca8b39dcf7cb14669b355f90ae1be9ee61effdac2950b1b73e798

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