I’ve managed to get TrueNAS connected to Active Directory and created a share that I can access from an AD account on a Windows client just fine. However when I try to mount the share on Ubuntu Server 24.04 I keep getting permission/logon failure.

In my fstab entry I’ve tried every combo I can think of.

domain=domain,user=user,password=pass domain=domain.local,user=user,password=pass user=domain\user,password=pass user=domain.local\user,password=pass

I’ve also tried a separate credentials file with every one of those combinations as well as versions 2.1 and 3.0. I’ve got no problem mounting shares from the Windows server without even specifying the domain.

At this point I’m pretty sure I’m missing a setting on TrueNAS but no idea what. Any ideas?

  • @zhill29OP
    link
    11 month ago

    I understand that, I’ve tried both domain=CompanyWork and domain=CompanyWork.internal in my cred file and directly in fstab both result in the permission error when mounting the TrueNAS share but work just fine when mounting a share provided by Windows Server.

    • @[email protected]
      link
      fedilink
      11 month ago

      Just for the sake of testing maybe try it with a oneliner:

      sudo mount -t cifs -o user=testuser,domain=testdomain //192.168.1.100/share /mnt

      Either way using the logs is the best way to check for discepancies. Also check in on the logs on the fileserver. Though idk what to advice to trace the logon stuff and trace whats making it fail.

      Just for the case that you dont know where to look in windows: eventviewer is the place to go. Which predifined filter though - simply google that.

      Wishing ya the best of luck mate!