Skip to content

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

Notifications You must be signed in to change notification settings

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

10 Commits
ย 
ย 
ย 
ย 
ย 
ย 

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

No packages published

Contributors 3

  •  
  •  
  •  

Languages