Documentation / Samba file server on Debian with Webmin
Samba file server on Debian with Webmin
Goal: role-based SMB shares with group permissions, from my homelab NAS rebuild.
- Install Samba:
sudo apt install samba - Create groups:
sudo groupadd adminsandsudo groupadd readers - Add users to Samba:
sudo smbpasswd -a username - Define the share in
/etc/samba/smb.conf:
[media]
path = /srv/media
valid users = @admins @readers
write list = @admins
read only = yes
- Validate and restart:
testparmthensudo systemctl restart smbd
Lesson from the rebuild
A read-only user was locked out because valid users listed the admin group but not the standard-user group. If a user can authenticate but cannot see a share, check valid users first.
Securing Webmin
Bind it to the management network only, keep it patched and use TLS.
Reference runbook. Test commands in a non-production tenant first and adapt names to your environment.