GitHub - KrishnaSaxena108/User-Group-Manager-And-User-Session-Logger: 🐧 Comprehensive Linux TUI for user/group management & session monitoring. Secure, user-friendly interface for system administrators. Built with Shell Script. · GitHub
Skip to content

KrishnaSaxena108/User-Group-Manager-And-User-Session-Logger

Folders and files

Repository files navigation

🐧 Linux User Account Management TUI

Linux Shell Script Terminal

A comprehensive Terminal User Interface (TUI) tool for managing Linux user accounts, groups, and monitoring session activities.

Built with ❤️ for Linux System Administration


📸 Preview

Main Interface

Main TUI Interface

✨ Features

👤 User Management

  • 🆕 Create User: Set up new user accounts with customizable settings

    • ✅ Username validation
    • 🏠 Custom home directory
    • 🐚 Shell selection
    • 👥 Primary group assignment
    • 🔗 Supplementary group membership
  • ✏️ Modify User: Update existing user accounts

    • 🏷️ Change username
    • 📝 Update full name
    • 📁 Relocate home directory
    • 🐚 Change login shell
    • 🔐 Reset password
    • 👥 Modify group memberships
  • 🗑️ Delete User: Remove user accounts with option to preserve or delete home directory

  • ℹ️ User Information: Display detailed user information including UID, GID, groups

👥 Group Management

  • 🆕 Create Group: Create new groups with optional GID specification
  • ✏️ Modify Group: Update group properties
    • 🏷️ Rename groups
    • 👤 Add/remove group members
  • 🗑️ Delete Group: Remove groups from the system
  • ℹ️ Group Information: View detailed group information

📊 Session Logging and Monitoring

  • 📋 User Session Logs: Review login history and session data
    • 🕐 Login history tracking
    • ❌ Failed login attempt monitoring
    • 🟢 Current active sessions
    • 🔍 Last login information
    • ⏱️ Session duration statistics
  • 📈 User Activity Summary: View consolidated user activity metrics
  • 🌐 System-wide Session Statistics: Review system-level login data and uptime

🛠️ Requirements

  • 🐧 Linux system with root/sudo privileges
  • 💬 dialog package (for TUI interface)
  • ⚙️ Standard Linux user management commands (useradd, usermod, etc.)

🚀 Installation

1️⃣ Clone the repository

git clone https://github.com/KrishnaSaxena108/User-Group-Manager-And-User-Session-Logger.git
cd User-Group-Manager-And-User-Session-Logger

2️⃣ Make the script executable

chmod +x Project.sh

3️⃣ Install dependencies

# On Debian/Ubuntu
sudo apt-get install dialog

# On RHEL/CentOS/Fedora
sudo yum install dialog
# or
sudo dnf install dialog

🎯 Usage

Run the script with root privileges:

sudo ./Project.sh

🎮 Navigation

  • Use Arrow Keys to navigate
  • Use Tab to switch between elements
  • Press Enter to select options
  • Press Esc to go back or cancel

🔒 Security Features

  • Input validation for all user entries
  • ⚠️ Confirmation dialogs for destructive operations
  • 🔐 Secure password management through standard Linux tools
  • 📝 Detailed action logging with timestamps
  • 👮 Permission checking to ensure root-only access

📄 Log File

All user and group management actions are logged to:

/var/log/user_management.log

Log Information Includes:

  • 🕐 Timestamp
  • 👤 User/Group name
  • 🎯 Action performed
  • 👨‍💻 Actor who performed the action

📱 Screenshots

User Management
User Management Interface

Group Management
Group Management Interface

📁 Project Structure

User-Group-Manager-And-User-Session-Logger/
├── 📜 Project.sh         # Main script
├── 📖 README.md          # This file
└── 📋 G19-PID-03.pdf     # Project documentation

👨‍💻 Team Members

Tanishq Gupta
Tanishq Gupta

2310992384
Krishna Saxena
Krishna Saxena

2310991705
Ansh Jolly
Ansh Jolly

2310991694
Armaan Singh Thind
Armaan Singh Thind

2310991704

🎓 About This Project

This project was developed as part of the Linux System Administration course. Our team focused on creating a user-friendly interface that simplifies complex Linux user and group management tasks while maintaining security and providing comprehensive logging capabilities.

🙏 Acknowledgements

  • 🎯 Inspired by the need for a user-friendly interface for Linux user management
  • 🛠️ Based on standard Linux user and group management utilities
  • 📚 Created for educational purposes as part of Linux System Administration coursework

**Made with ❤️ by Our Team **

Linux System Administration Course Project

About

🐧 Comprehensive Linux TUI for user/group management & session monitoring. Secure, user-friendly interface for system administrators. Built with Shell Script.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages