{"id":21351758,"url":"https://github.com/serverfarmer/sm-inspect-users","last_synced_at":"2025-03-16T04:41:17.040Z","repository":{"id":92623514,"uuid":"153898076","full_name":"serverfarmer/sm-inspect-users","owner":"serverfarmer","description":"Create script that recreate existing groups/users/passwords on a clean system, for each server in the farm.","archived":false,"fork":false,"pushed_at":"2022-11-21T11:04:13.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T17:13:27.322Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://serverfarmer.org/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serverfarmer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-20T11:21:07.000Z","updated_at":"2021-12-12T10:37:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"5550d91a-256d-4c76-b84e-aa7f0f17383e","html_url":"https://github.com/serverfarmer/sm-inspect-users","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverfarmer%2Fsm-inspect-users","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverfarmer%2Fsm-inspect-users/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverfarmer%2Fsm-inspect-users/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serverfarmer%2Fsm-inspect-users/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serverfarmer","download_url":"https://codeload.github.com/serverfarmer/sm-inspect-users/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826783,"owners_count":20354220,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T03:11:00.160Z","updated_at":"2025-03-16T04:41:17.006Z","avatar_url":"https://github.com/serverfarmer.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Overview\n\n`sm-inspect-users` management extension analyzes key authentication-related files on either local, or remote server:\n\n- `/etc/group`\n- `/etc/passwd`\n- `/etc/shadow`\n- `~/.ssh/authorized_keys` (for all users)\n\nNext, for each server it creates a script that can recreate existing:\n\n - groups\n - users\n - passwords (in encrypted form)\n - home directories (commands that rsync them fron another server)\n - ssh keys\n - Samba passwords\n\non a fresh system.\n\n## Advantages over generic backup/export tools\n\nTraditional, generic tools that export user credentials, generate complicated commands, that duplicate various default options, eg.\n\n`useradd -m -d /home/steve steve`\n\nThis 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:\n\n`useradd -m steve`\n\nTherefore, what this extension really does, is:\n\n- analyze the files mentioned above\n- compute, which user options follow default values and can be skipped\n- generate optimized scripts, with minimal set of options\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverfarmer%2Fsm-inspect-users","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserverfarmer%2Fsm-inspect-users","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserverfarmer%2Fsm-inspect-users/lists"}