Nicholas Quirk
Systems Administrator
Blog / Nick's Tech Journal
Nick's Tech Journal

TrueNAS had other plans: rebuilding my NAS on Debian

One of my homelab projects was turning my NAS box into, well, just a NAS. Why TrueNAS? Because the Linux install it was running was flexible, and flexible meant overloaded. Between my music library, the NAS, some light media and a VM jump server, the N100 inside it kept running out of breath, and one of those jobs was always lagging or going unresponsive.

So I moved most of that work to my Ryzen server and planned to leave the N100 with two jobs: NAS and music.

The Samba problem

Then came the thing that actually pushed me over the edge. I run a management account with full access to my shares, plus a user with read-only access to some folders so I can't accidentally delete things I only ever need to read. I wanted to give that read-only user write access to one new directory. Simple, right?

Samba on most distros has no graphical management, so you get to raw-dog the terminal:

  • Check the user can read and write on the system level, by user or by group
  • Check the Samba account exists and is defined properly
  • Check ls -ld agrees that everything is immaculate
  • Remember, if you ever set an ACL, you need to go find it and make sure it names this user
  • Check smb.conf has no typos, no errors and no conflicting statements
  • Run testparm and read the output like a data forensics analyst
  • Loop back through all of it, meticulously, when it still does not work
  • Put enough Parmesan through testparm to put an Italian restaurant out of business

Something that should take one console and two clicks turns into a whole ordeal, and it makes you not want to touch the config unless you have a few hours to burn.

The plan, and the plot twist

My plan was a fresh TrueNAS install, because it has a web interface for users and groups and can run headless like a Samba server should. Do I wish I could bolt a GUI onto my existing install without re-architecting the whole box? You bet. But I was excited to make it happen.

Then TrueNAS did not support my new networking hardware.

So I installed Debian 13 and put Webmin on top of it, which gives me that web console for Samba users and groups. Rocky 10 was not an option because Webmin does not support it yet.

The bug that cost me an hour

After the rebuild, my standard user could log in but could not see the share. The culprit was a missing group in the share's valid users line in smb.conf: the admin group was listed and the standard-users group was not.

[media]
   valid users = @admins @readers
   write list  = @admins

My rule now: if somebody can authenticate but cannot see a share, check valid users first.

Where it landed

I put a music server back on the N100 box, so now both it and the UM790 Pro serve music. If you run Webmin yourself, keep it off the open internet: management consoles are attack surface. I wrote the steps up as a reference here: [Samba file server on Debian with Webmin](/docs/samba-nas-debian-webmin/).