Skip to content

Instantly share code, notes, and snippets.

View sreevishnu-hub's full-sized avatar

sreevishnu-hub

View GitHub Profile

Automating Linux User & Group Creation with create_users.sh

Author: LINGAMPALLI SREEVISHNU Date: 05/10/2025 Public: Yes

Creating Linux Users from a CSV-like File — create_users.sh

Summary
This short guide explains create_users.sh: a bash script that reads a simple username; groups file, creates users and groups, sets secure home permissions, generates random passwords for each user, logs all actions to /var/log/user_management.log, and stores credentials in /var/secure/user_passwords.csv with owner-only access.

Requirements & Goals