passwd-group-obj
Password and group maintenance library using promises.
(part of the Partout project).
passwd
var passwd = passwd PUser = PUser; passwd
Also manages shadow password attributes, like min/max age, expire etc.
group
var group = group GGroup = GGroup; group
*** WARNING About running unit-tests as a priviledged user ***
If the unit-tests are run as root, they WILL make test changes to /etc/passwd, /etc/shadow and /etc/group.
My test environment is safely achieved using LXD containers for various flavours of Linux. See these scripts for details:
- https://github.com/partoutx/partout/blob/master/agent/launch_lxd_test_containers.sh
- https://github.com/partoutx/partout/blob/master/agent/start_lxd_containers.sh
- https://github.com/partoutx/partout/blob/master/agent/stop_lxd_containers.sh
- https://github.com/partoutx/partout/blob/master/agent/delete_lxd_containers.sh
The container folder bindings allow me to run gulp watch and to have unit-tests run in all containers every time a change is saved.
LICENSE
MIT