Some TrueNAS Users are not accessible in Windows Environment after Upgrade 11.3 -> 12.0

nas4free-user

Dabbler
Joined
Dec 20, 2018
Messages
22
I have a mixed environment: AD users and local users. Everything worked as expected in FreeNAS versions.
After upgrading to TruNAS 12.0U8 some smb shares did not work any longer.
It turned out, that some of my local TruNAS users are not visible in Microsoft windows systems when trying to set security settings. They just don’t appear in the search list!
It seams as if only the first 5 users I ever created can be seen from Windows. If I add new users now, they cannot be seen either ☹
No problems with AD users so far!
My other NAS systems still running FreeNAS 11.3 – there I can add users and they can be seen in Windows system!
What is the difference now with TrueNAS? Any help appreciated!
 

nas4free-user

Dabbler
Joined
Dec 20, 2018
Messages
22
when I assign the user rights within TrueNAS theay appear in Windows System as:
'Unix User\user1'
Users that are working as expected appear as:
'servername\user2'

But I really don't see any difference between the two users configuration in TruNAS.
 

nas4free-user

Dabbler
Joined
Dec 20, 2018
Messages
22
according to another post I tried on the TrueNAS shell:
root@NAS4[~]# smbclient -L //127.0.0.1 -U NAS4/test
Enter NAS4\test's password:
session setup failed: NT_STATUS_LOGON_FAILURE
(I dubble checked the password, other working users show up shars here)
So even TrueNAS doesn’t recognizes its own users as samba users.
What can I do?
 

nas4free-user

Dabbler
Joined
Dec 20, 2018
Messages
22
After some research I used following command:
'midclt call smb.passdb_list' and in fact it only shows my old users, the new users are missing.
Can I use:
rm /var/db/system/samba4/private/passdb.tdb
midclt call smb.synchronize_passdb -job

to rebuild my database, or can I do this from GUI or is there a better way?
Regards
Frank
 

nas4free-user

Dabbler
Joined
Dec 20, 2018
Messages
22
A small progress:
It seems as if ‘sharing.smb.sync_registry’ will be done on every restart of the smb service.
I figured out two users, that might be ‘problematic’.
When I deleted them, at least the following user (higher UID) could be synchronized and are now accessible from Windows.
But two remaining issues:
1. I still cannot add more users to my system, getting following error: “smb.synchronize_passdb” failed (GUI error!)
2. After new reboot of my TrueNAS, my shares are not usable (not visible and not accessible!) – only after a restart of the smb service I can use my NAS.

Can there be a BUG?

Because I didn’t mentioned earlier:
I upgraded from FreeNAS to TrueNAS by installing on a fresh drive, importing pool and configfile after!
Any help appreciated!
 
Top