A set of tools to manage users from pam_mysql
Project description
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
Documentation
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
PAMMySQLTools-0.1.0.tar.gz
(13.6 kB
view hashes)
Built Distribution
Close
Hashes for PAMMySQLTools-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fb02fd33976d7e26311542b08ea3eb79c244c3037a3eda715b994c6c5caf0fa |
|
MD5 | d2ea023286f35674da0b2388a828bf24 |
|
BLAKE2b-256 | 231ac32c9ceb7dbf200ff95484b2461c5a8ec907cb812684658c6ac359c3369d |