User Management
Vapor provides comprehensive Linux user and group management capabilities through an intuitive web interface. Manage system users, groups, permissions, and SSH access.
Prerequisites
- Root or sudo privileges for user management operations
- Understanding of Linux user/group concepts
- SSH service running (for SSH key management)
Navigating to User Management
- From the main menu, click on Users
- The user management interface opens with a list of system users
User Management
User List View
The main view displays all system users with:
- Username: Login name
- UID: User ID number
- Full Name: User's real name
- Primary Group: Main group membership
- Home Directory: User's home path
- Shell: Default shell
- Status: Enabled/Disabled
- Last Login: Most recent login time
Creating Users
Quick Create
- Click Create User
- Fill in basic information:
- Username: Login name (required)
- Full Name: Real name (optional)
- Password: Initial password
- Email: Contact email
- Click Create
Advanced User Creation
For more control, expand Advanced Options:
Account Settings
- UID: Specific user ID (auto-assigned if empty)
- Primary Group: Main group membership
- Additional Groups: Secondary groups
- Home Directory: Custom home path
- Shell: User's login shell
- Expiry Date: Account expiration
Password Policy
- Force Change: Require password change on first login
- Minimum Days: Between password changes
- Maximum Days: Password validity period
- Warning Days: Before expiration warning
- Inactive Days: Grace period after expiration
Security Options
- Sudo Access: Grant administrative privileges
- SSH Access: Allow SSH login
- Account Locked: Disable login
- Password Disabled: No password authentication
Managing Existing Users
Edit User
- Click on a username or the Edit button
- Modify user properties:
- Personal information
- Group memberships
- Shell and home directory
- Account settings
- Click Save Changes
Reset Password
- Click Reset Password in user actions
- Enter new password
- Optionally force change on next login
- Click Reset
Lock/Unlock Account
- Lock: Temporarily disable user login
- Unlock: Re-enable user access
- Preserves user data and settings
Delete User
- Click Delete in user actions
- Choose deletion options:
- Keep Home Directory: Preserve user files
- Remove Home: Delete all user data
- Remove Mail Spool: Delete mail files
- Confirm deletion
User Details
Click on a user to view detailed information:
Account Tab
- Login statistics
- Password age and policy
- Account expiration status
- Shell and environment
Groups Tab
- Primary group membership
- Secondary groups
- Available groups to join
- Group management actions
SSH Keys Tab
- Authorized SSH keys
- Key fingerprints
- Key types and comments
- Add/remove keys
Sudo Access Tab
- Current sudo privileges
- Sudoers file entries
- Command restrictions
- NOPASSWD settings
Activity Tab
- Login history
- Command history (if auditing enabled)
- Failed login attempts
- Session duration
Group Management
Group List
View all system groups:
- Group Name: Group identifier
- GID: Group ID number
- Members: User count
- Description: Group purpose
- Type: System or user group
Creating Groups
- Click Create Group
- Enter group information:
- Group Name: Unique identifier
- GID: Specific ID (optional)
- Description: Group purpose
- Add initial members (optional)
- Click Create
Managing Groups
Edit Group
- Click on group name
- Modify:
- Group members
- Description
- Group password (rarely used)
- Save changes
Group Membership
Add/remove users from groups:
- Select group
- Click Manage Members
- Add users from available list
- Remove existing members
- Click Update
Delete Group
- Click Delete on group
- Confirm no users have it as primary group
- Confirm deletion
SSH Key Management
Viewing SSH Keys
For each user, view:
- Authorized keys list
- Key types (RSA, ED25519, etc.)
- Key fingerprints
- Key comments/labels
- Addition date
Adding SSH Keys
- Navigate to user's SSH Keys tab
- Click Add SSH Key
- Paste public key content
- Add descriptive comment
- Click Add
Key Validation
Vapor validates SSH keys:
- Correct format
- Supported key type
- No duplicate keys
- Proper permissions set
Removing Keys
- Select key to remove
- Click Remove
- Confirm removal
Sudo Management
Viewing Sudo Access
Check user's sudo privileges:
- Full sudo access
- Specific command access
- Host restrictions
- NOPASSWD settings
Granting Sudo Access
Simple Sudo
- Edit user
- Enable Sudo Access checkbox
- User added to sudo/wheel group
Advanced Sudo
- Click Advanced Sudo
- Configure:
- Commands: Specific allowed commands
- Run As: User/group to run as
- Hosts: Allowed hosts
- NOPASSWD: Skip password prompt
- Generate sudoers entry
- Apply configuration
Sudoers File Management
View and edit sudoers configuration:
- User-specific rules
- Group rules
- Command aliases
- Defaults settings
Bulk Operations
Bulk User Creation
- Click Bulk Create
- Upload CSV file or paste data:csv
username,fullname,email,groups jsmith,John Smith,jsmith@example.com,"users,developers" mjones,Mary Jones,mjones@example.com,"users,admins"
- Map columns to fields
- Review and confirm
- Execute bulk creation
Bulk Modifications
- Select multiple users
- Choose bulk action:
- Add to group
- Remove from group
- Lock accounts
- Reset passwords
- Delete users
- Confirm and execute
Security Features
Password Policies
Configure system-wide policies:
- Minimum length
- Complexity requirements
- History restrictions
- Expiration settings
Account Monitoring
Monitor user activity:
- Failed login attempts
- Successful logins
- Privilege escalations
- Command execution
Access Control
Manage user access:
- SSH restrictions
- Sudo limitations
- Shell restrictions
- Home directory permissions
Integration Features
LDAP/AD Integration
Connect to directory services:
- Import users from LDAP
- Sync with Active Directory
- Map LDAP groups
- Single sign-on support
Two-Factor Authentication
Enable 2FA for users:
- TOTP support
- Backup codes
- Per-user enforcement
- Recovery options
Best Practices
User Management
- Principle of Least Privilege: Grant minimal required access
- Regular Audits: Review user accounts periodically
- Strong Passwords: Enforce complexity requirements
- Disable Unused Accounts: Lock or remove inactive users
- Document Changes: Keep audit trail of modifications
Group Organization
- Logical Grouping: Create groups by function/department
- Avoid Over-Privileging: Don't add users to sudo unnecessarily
- Use Secondary Groups: For additional permissions
- Regular Review: Audit group memberships
- Naming Conventions: Use consistent group names
SSH Security
- Key-Based Auth: Prefer keys over passwords
- Key Rotation: Regularly update SSH keys
- Disable Root SSH: Don't allow direct root login
- Monitor Access: Log SSH connections
- Restrict Sources: Limit SSH from specific IPs
Troubleshooting
Login Issues
- Check account not locked
- Verify password not expired
- Ensure shell is valid
- Check home directory exists
- Review PAM configuration
Permission Problems
- Verify group membership
- Check file ownership
- Review sudo configuration
- Ensure proper umask
- Check SELinux/AppArmor
SSH Key Problems
- Verify key format
- Check file permissions (600)
- Ensure .ssh directory (700)
- Verify authorized_keys location
- Check SSH daemon config
CLI Commands
Common user management commands:
bash
# User management
useradd username
usermod -aG group username
passwd username
userdel -r username
# Group management
groupadd groupname
groupmod -n newname oldname
groupdel groupname
# View information
id username
groups username
getent passwd username
last username
# SSH keys
ssh-keygen -t ed25519
ssh-copy-id user@host