https://github.com/serverfarmer/sm-inspect-users
Create script that recreate existing groups/users/passwords on a clean system, for each server in the farm.
https://github.com/serverfarmer/sm-inspect-users
Last synced: over 1 year ago
JSON representation
Create script that recreate existing groups/users/passwords on a clean system, for each server in the farm.
- Host: GitHub
- URL: https://github.com/serverfarmer/sm-inspect-users
- Owner: serverfarmer
- License: mit
- Created: 2018-10-20T11:21:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-21T11:04:13.000Z (over 3 years ago)
- Last Synced: 2025-01-22T17:13:27.322Z (over 1 year ago)
- Language: PHP
- Homepage: http://serverfarmer.org/
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Overview
`sm-inspect-users` management extension analyzes key authentication-related files on either local, or remote server:
- `/etc/group`
- `/etc/passwd`
- `/etc/shadow`
- `~/.ssh/authorized_keys` (for all users)
Next, for each server it creates a script that can recreate existing:
- groups
- users
- passwords (in encrypted form)
- home directories (commands that rsync them fron another server)
- ssh keys
- Samba passwords
on a fresh system.
## Advantages over generic backup/export tools
Traditional, generic tools that export user credentials, generate complicated commands, that duplicate various default options, eg.
`useradd -m -d /home/steve steve`
This example may look ok at the first sight, but if you manage X servers, each with different set of users and their specific options, then having scripts duplicating unnecessary details like `-d /home/steve`, becomes a problem. This is much better:
`useradd -m steve`
Therefore, what this extension really does, is:
- analyze the files mentioned above
- compute, which user options follow default values and can be skipped
- generate optimized scripts, with minimal set of options