feat: Use existing sudo user instead of creating new nasadmin user

- Modify setup.sh to automatically detect and use SUDO_USER
- Pre-fill admin username with current sudo user
- Only create new user if specified user doesn't exist
- Update README.md to document user management changes
- Update CHANGELOG.md with user management improvements
- Remove unnecessary NEW_USER default creation
This commit is contained in:
Mărcziem ™
2025-10-03 13:15:51 +02:00
parent 5a0a2401ce
commit 21781166ea
3 changed files with 18 additions and 9 deletions

View File

@@ -154,10 +154,8 @@ The script guides you through an interactive configuration:
- **Webmin:** Web-based system administration interface (optional)
- **Unattended Upgrades:** Automatic security updates (optional, disabled by default)
### Security Configuration
- **Firewall Rules:** IPv4/IPv6 automatic based on selected services
- **Fail2ban:** Protection against brute-force attacks
- **Rate Limiting:** IPv4/IPv6 protection against DoS attacks
### User Configuration
- **Admin User:** Uses the current sudo user by default (no new user creation required)
- **SSH Keys:** Ed25519 key generation for enhanced security
## 📁 Directory Structure