Nicholas Quirk
Systems Administrator
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.

  1. Install Samba: sudo apt install samba
  2. Create groups: sudo groupadd admins and sudo groupadd readers
  3. Add users to Samba: sudo smbpasswd -a username
  4. Define the share in /etc/samba/smb.conf:
[media]
   path = /srv/media
   valid users = @admins @readers
   write list = @admins
   read only = yes
  1. Validate and restart: testparm then sudo 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.