Drive Detection Improvements:
- Enhanced discover_mounts() with verbose mode showing detailed disk info
- Better filtering to skip loopback devices and empty entries
- Extended SHARES array format to include device name and UUID (5 fields)
- Shows mount status, disk size, and free space for each partition
create-all Command Overhaul:
- Now a comprehensive 4-step setup process:
1. Creates static shares (home + root)
2. Detects all disk partitions on the system
3. Automatically mounts unmounted disks to /mnt/<label>
4. Adds disks to /etc/fstab for persistent mounting
5. Creates Samba shares for all mounted disks
- Perfect for initial setup or bulk disk management
Other Improvements:
- discover command now shows verbose output with mount status
- auto-disks shows count of created shares
- Updated all functions to handle new 5-field SHARES format
- Better error handling and user feedback throughout
This makes FSA truly zero-touch for multi-disk setups!
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Features added:
- Create Samba users with password setup (user-create)
- List all Samba users (user-list)
- Delete Samba users with optional system user removal (user-delete)
- Configure share access for users interactively (user-access)
- Revoke user access from specific shares (user-revoke)
- Automatically creates system users if needed
- Interactive share selection for user permissions
- Disables guest access when users are assigned
User management includes:
- Password prompts for new users
- System user creation with no shell access
- Integration with pdbedit for user management
- Automatic valid_users configuration in smb.conf
- Backup creation before any configuration changes
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Features:
- Auto-detects Linux distribution (Arch, Debian, Ubuntu, Fedora, RHEL, etc.)
- Auto-installs Samba if not present
- Auto-detects current user and network interfaces
- Supports disk discovery and management
- Optional persistent mounting via /etc/fstab
- Safe configuration management with backups
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>