Skip to main content

|build| |coverage|

PAMMySQL Tools ist a suite to manage users for pam_mysql and libnss-mysql. It tries to mimic the behaviours of the linux tools user{add,mod,del} and group{add,mod,del}

Installation

To install simply run:

pip install PAMMySQLTools

This will install the scripts:

  • myuseradd

  • myusermod

  • myuserdel

  • mygroupadd

  • mygroupmod

  • mygroupdel

Configuration

In the directory docs you can find an example config with all everything set. If you don’t set a value, the tools will assume the values in the original config as default values.

Running the Software

To display help for any of the scripts, start with the –help parameter

For example:

$ myuseradd --help
Usage: myuseradd [OPTIONS] LOGIN

Options:
  -b, --basedir BASE_DIR          base directory for the home directory of the
                                  new account
  -c, --comment COMMENT           GECOS field of the new account
  -d, --home-dir HOME_DIR         home directory of the new account
  -e, --expiredate EXPIRE_DATE    expiration date of the new account
  -f, --inactive INACTIVE         password inactivity period of the new
                                  account
  -g, --gid GROUP                 name or ID of the primary group of the new
                                  account
  -G, --groups GROUPS             list of supplementary groups of the new
                                  account
  -k, --skel SKEL_DIR             use this alternative skeleton directory
  -K, --key KEY=VALUE             override /etc/login.defs defaults
  -M, --no-create-home / -m, --create-home
                                  do not create the user's home directory
  -U, --no-user-group / -N, --user-group
                                  do not create a group with the same name as
                                  the user
  -o, --non-unique                allow to create users with duplicate (non-
                                  unique) UID
  -p, --password PASSWORD         encrypted password of the new account
  -r, --system                    create a system account
  -s, --shell SHELL               login shell of the new account
  -u, --uid UID                   user ID of the new account
  --config CONF_PATH              path to the config file for this tool
  --help                          Show this message and exit.

Metadata

Release files for PAMMySQLTools 0.2.1

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

Source distribution (sdist)

Source distribution for PAMMySQLTools 0.2.1
File Size Uploaded
PAMMySQLTools-0.2.1.tar.gz 16.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PAMMySQLTools 0.2.1
File Interpreter ABI Platform
PAMMySQLTools-0.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 37.2 kB

Release files / PAMMySQLTools-0.2.1.tar.gz

Download URL PAMMySQLTools-0.2.1.tar.gz
Size 16.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5c678c9a4017db600dfadf13b6be44d0ea6faf89aa2fe901dc025fdd98abe73b
BLAKE2b-256 checksum
How to use checksums
44579135b4b4117b96a50eb04ab8d71bb33b422d57871485bc086e5c8d6ca2d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / PAMMySQLTools-0.2.1-py2.py3-none-any.whl

Download URL PAMMySQLTools-0.2.1-py2.py3-none-any.whl
Size 21.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
d2d5a6d955ec8eeee73385ae6219f36c2383a19ac010b7b030038b4b7a8c7bc8
BLAKE2b-256 checksum
How to use checksums
e62468518efd17aa10b03034d42e382a8b06e3c4239a5ffd28e13f9f48db8bcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.11

1 release file

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

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