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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for python3_cyberfusion_proftpd_support-1.1.1.tar.gz
Algorithm Hash digest
SHA256 7be77769c88543e4cf6de6deb628a1640eeece895431dfe6f1b22d3bbba6fbc1
MD5 f34c7df4e2813f45cd67ccf74ecf6290
BLAKE2b-256 b65a7c2fac40dd19dc832b015cd72bc2e5ca8b949983a18181c8c2bd0fc85bac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for python3_cyberfusion_proftpd_support-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eeceebccd7665ff2276390d5060a18dd029e2674a8943f830ad567b46853639b
MD5 5a42210dfe16249fcec88c41e8f7d478
BLAKE2b-256 584e4b18a283d25a3860f0e06536969642e0ce998bb0bbe9c70267ad730f0555

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