A comprehensive Terminal User Interface (TUI) tool for managing Linux user accounts, groups, and monitoring session activities.
Built with ❤️ for Linux System Administration
-
🆕 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
- 🆕 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
- 📋 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
- 🐧 Linux system with root/sudo privileges
- 💬
dialogpackage (for TUI interface) - ⚙️ Standard Linux user management commands (
useradd,usermod, etc.)
git clone https://github.com/KrishnaSaxena108/User-Group-Manager-And-User-Session-Logger.git
cd User-Group-Manager-And-User-Session-Loggerchmod +x Project.sh# On Debian/Ubuntu
sudo apt-get install dialog
# On RHEL/CentOS/Fedora
sudo yum install dialog
# or
sudo dnf install dialogRun the script with root privileges:
sudo ./Project.sh- Use Arrow Keys to navigate
- Use Tab to switch between elements
- Press Enter to select options
- Press Esc to go back or cancel
- ✅ 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
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
User-Group-Manager-And-User-Session-Logger/
├── 📜 Project.sh # Main script
├── 📖 README.md # This file
└── 📋 G19-PID-03.pdf # Project documentation
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.
- 🎯 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







