Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ§ͺ User Account Management Script

License Bash Status

πŸ“Œ Overview

Automates Linux user account creation using Bash + CSV.
Ideal for system administrators, DevOps engineers, and educational labs.

πŸš€ Features

  • CSV-driven input: Manage users via employee.csv
  • Secure password generation: Random strong passwords with openssl
  • Root validation: Ensures script runs with admin privileges
  • Automated account creation: Adds users with metadata + home directories
  • Password enforcement: Forces password change on first login
  • Audit logging: Saves credentials to out.text
  • Interactive CSV builder: Script for manual entry and confirmation

πŸ“‚ File Structure

File Description
employee.csv Input usernames + full names
out.text Output with generated credentials
create_csv.sh Interactive CSV builder
create_users.sh Main automation script
script/script-create-csv-file.png Screenshot of CSV creation
script/user-account-csv-workflow.png Workflow diagram
script/capstone-title-slide.png Project title slide
script/bash-script-preview.png Script preview

πŸ“‹ Usage

1. Prepare the CSV file

bash create_csv.sh

2. Run the automation script
bash
sudo bash create_users.sh
3. Check output
Created users and their passwords will be logged in out.text.

πŸ–ΌοΈ Workflow

πŸ› οΈ Requirements
Linux environment

Bash shell

openssl installed

πŸ“š Educational Value
Perfect for:

Capstone presentations

System administration labs

DevOps onboarding demos

πŸ“Š Demo Example
Sample employee.csv:

Username	Full Name
aws	Amazon Web Services
K8s	Kubernetes
Output out.text:

Code
aws,randomPassword123
K8s,securePassXYZ
πŸ‘¨β€πŸ’» Author
Sayed Atwh β€” Third-year Computer Science student at Beni-Suef University, aspiring Cloud & DevOps Engineer.

## πŸ“¬ Contact
- GitHub: https://github.com/SayedAtwh
- LinkedIn: https://www.linkedin.com/in/sayed-atwh-sayed
- Email: sayed.atwh.sayed@example.com

About

This project automates the process of creating Linux user accounts using a structured CSV file and Bash scripting. Designed for system administrators and DevOps engineers, it streamlines bulk user provisioning with secure password generation and audit logging.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors