Same SMB SIDs are assigned twice
Description
Problem/Justification
None
Impact
None
Activity
Show:

Bug Clerk October 1, 2021 at 1:11 PM
Complete
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee

Reporter

Impact
Medium
Components
Fix versions
Affects versions
Priority
More fields
Time tracking
More fields
Time trackingKatalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Katalon Platform
Linked Test Cases, Katalon Defect Results, Katalon Studio Test Results
Created October 1, 2021 at 12:55 PM
Updated July 6, 2022 at 9:00 PM
Resolved October 1, 2021 at 1:13 PM
BRIEF:
In TrueNAS-SCALE-21.08-BETA.1, some SIDs will be assigned to more than one object.
STEPS AND RESULTS:
Just for curiosity, I installed brand new TrueNAS-SCALE-21.08-BETA.1 on Proxmox VE and the all the settings are default.
This time I created group g1 in Credentials --> Local Groups , and user u1 in Credentials --> Local Users , then g2, u2, g3, u3 ...... (picture1/2)
All the groups and users are in the same settings (except names).
But as a result some users(u2 and u4) are obviously different from others: some of the SIDs which used to mark the group these users belong to are missing. ( picture3 )
AND it seems that the g2 and u2 use the same SID( S-1-5-21-xxx-1002), the same goes for g3 and u4(S-1-5-21-xxx-1004).
I am not an expert on the SMB protocol, but I really want to know if this is normal.
ACTUAL RESULT: some group use the same SID with user, and some user looks a little bit wierd.
EXPECTED RESULT: system don't assign same SID twice. all users are the same except for their names/SIDs.
SCREENSHOT / FAULT DETAILS:
ADDITIONAL INFO:
```
truenas# testparm
Load smb config files from /etc/smb4.conf
lpcfg_do_global_parameter: WARNING: The "syslog only" option is deprecated
Loaded services file OK.
Weak crypto is allowed
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions
Global parameters
[global]
bind interfaces only = Yes
disable spoolss = Yes
dns proxy = No
load printers = No
logging = file
max log size = 5120
passdb backend = tdbsam:/root/samba/private/passdb.tdb
printcap name = /dev/null
registry shares = Yes
restrict anonymous = 2
server min protocol = SMB2
server string = TrueNAS Server
idmap config * : range = 90000001 - 100000000
idmap config * : backend = tdb
create mask = 0775
directory mask = 0775
truenas#
```
```
truenas# pdbedit -Lv
lpcfg_do_global_parameter: WARNING: The "syslog only" option is deprecated
---------------
Unix username: u2
NT username:
Account Flags: [U ]
User SID: S-1-5-21-709106821-3995303692-1386581790-1002
Primary Group SID: S-1-5-21-709106821-3995303692-1386581790-513
Full Name: u2
Home Directory: \\TRUENAS\u2
HomeDir Drive:
Logon Script:
Profile Path: \\TRUENAS\u2\profile
Domain: TRUENAS
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: Wed, 06 Feb 2036 07:06:39 PST
Kickoff time: Wed, 06 Feb 2036 07:06:39 PST
Password last set: Fri, 01 Oct 2021 04:55:48 PDT
Password can change: Fri, 01 Oct 2021 04:55:48 PDT
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
---------------
Unix username: u4
NT username:
Account Flags: [U ]
User SID: S-1-5-21-709106821-3995303692-1386581790-1004
Primary Group SID: S-1-5-21-709106821-3995303692-1386581790-513
Full Name: u4
Home Directory: \\TRUENAS\u4
HomeDir Drive:
Logon Script:
Profile Path: \\TRUENAS\u4\profile
Domain: TRUENAS
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: Wed, 06 Feb 2036 07:06:39 PST
Kickoff time: Wed, 06 Feb 2036 07:06:39 PST
Password last set: Fri, 01 Oct 2021 05:20:40 PDT
Password can change: Fri, 01 Oct 2021 05:20:40 PDT
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
---------------
Unix username: u1
NT username:
Account Flags: [U ]
User SID: S-1-5-21-709106821-3995303692-1386581790-1001
Primary Group SID: S-1-5-21-709106821-3995303692-1386581790-513
Full Name: u1
Home Directory: \\TRUENAS\u1
HomeDir Drive:
Logon Script:
Profile Path: \\TRUENAS\u1\profile
Domain: TRUENAS
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: Wed, 06 Feb 2036 07:06:39 PST
Kickoff time: Wed, 06 Feb 2036 07:06:39 PST
Password last set: Fri, 01 Oct 2021 04:55:24 PDT
Password can change: Fri, 01 Oct 2021 04:55:24 PDT
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
---------------
Unix username: u3
NT username:
Account Flags: [U ]
User SID: S-1-5-21-709106821-3995303692-1386581790-1003
Primary Group SID: S-1-5-21-709106821-3995303692-1386581790-513
Full Name: u3
Home Directory: \\TRUENAS\u3
HomeDir Drive:
Logon Script:
Profile Path: \\TRUENAS\u3\profile
Domain: TRUENAS
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: Wed, 06 Feb 2036 07:06:39 PST
Kickoff time: Wed, 06 Feb 2036 07:06:39 PST
Password last set: Fri, 01 Oct 2021 04:58:12 PDT
Password can change: Fri, 01 Oct 2021 04:58:12 PDT
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
truenas#
```