Hi All, i have the same problem regarding random access denied errors and "chdir_current_service() failed!" . I figured that they are not random. this is my situation:
- I have my FREENAS joined to active directory. Netbios name is "FREENAS" , active directory is "ad.*****.network" ( this is a valid domain in split DNS configuration ).
- DNS are correctly pointing and resolving, so "nslookup freenas" and "nslookup freenas.ad.*****.network" are pointing to the same address
- I have created a "test" dataset /mnt/tank/test ( set share type SMB )
- I have smb shared "/mnt/tank/test" with default options (ixnas, streams_xattr)
- I set permissions as follow:
File Information
* user: *****\administrator
* group: *****\domain admins
Access Control List:
* owner@ , allow, basic, full control , basic, inherit
* group@ , allow, basic, full control , basic, inherit
* group: *****\production , allow, basic , full control, basic ( this is an active directory security group )
My user is part of the default "Domain Users" group and "Production" group
The problem is that if i connect to the share using \\freenas\test then i can't connect using \\ip_address\test\ AND \\freenas.ad.*****.network\test
The opposite it's true" if I connect using \\ip_address\test\ AND \\freenas.ad.*****.network\test , I can't connect using \\freenas\test.
[2020/02/11 17:02:53.229863, 3] ../../source3/smbd/service.c:157(chdir_current_service)
chdir (/mnt/tank/test) failed, reason: Permission denied
[2020/02/11 17:02:53.229953, 0] ../../source3/smbd/uid.c:448(change_to_user_internal)
change_to_user_internal: chdir_current_service() failed!
But here it is what i have found: if i change ACL group *****\production to ******\Domain Users , I can correctly login using \\freenas\test , \\freenas.ad.*****.network\test , \\ip_address\test\
No errors.
Looking at active directory groups the only difference is that "Domain Users" group is member of "Users" group ( this is the default built-in local-to-dc group ) and my "Production" group is not member of "Users" group. If i make "Production" meber of "Users" connect error goes away.