I just upgraded to TrueNAS 12 from freenas. I was using root as a SMB user. I added a new user "chris" to replace the root usage. Some of my shares are working as expected, but there is a troublesome one I can't seem to figure out.
I pasted some log.smdb and getfacl info below:
[2021/03/26 09:56:54.326134, 0] ../../source3/smbd/service.c:183(chdir_current_service)
chdir_current_service: vfs_ChDir(/mnt/v1/main/aaaaa) failed: Permission denied. Current token: uid=65534, gid=65534, 4 groups: 65534 90000004 90000005 546
cat /etc/passwd:
nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
client fstab:
//172.24.1.10/aaaaa /mnt/aaaaa cifs credentials=/root/smbcredentials,uid=root,gid=root 0 0
root@freenas[/var/log/samba4]# getfacl /mnt/v1/main/aaaaa/
# file: /mnt/v1/main/aaaaa/
# owner: root
# group: builtin_users
owner@:rwxpDdaARWcCos:fd----I:allow
group@:rwxpDdaARWcCos:fd----I:allow
everyone@:--------------:fd----I:allow
client /root/smbcredentials
username=chris
password=***********
Since user "chris" is a member of "builtin_users" I would expect to have access to "/mnt/v1/main/aaaaa/", as per the getfacl output.
I'm suspicious of the "uid=65534, gid=65534" output in the smdb logs. Is smdb trying to use the wrong user to chmod?
I pasted some log.smdb and getfacl info below:
[2021/03/26 09:56:54.326134, 0] ../../source3/smbd/service.c:183(chdir_current_service)
chdir_current_service: vfs_ChDir(/mnt/v1/main/aaaaa) failed: Permission denied. Current token: uid=65534, gid=65534, 4 groups: 65534 90000004 90000005 546
cat /etc/passwd:
nobody:*:65534:65534:Unprivileged user:/nonexistent:/usr/sbin/nologin
client fstab:
//172.24.1.10/aaaaa /mnt/aaaaa cifs credentials=/root/smbcredentials,uid=root,gid=root 0 0
root@freenas[/var/log/samba4]# getfacl /mnt/v1/main/aaaaa/
# file: /mnt/v1/main/aaaaa/
# owner: root
# group: builtin_users
owner@:rwxpDdaARWcCos:fd----I:allow
group@:rwxpDdaARWcCos:fd----I:allow
everyone@:--------------:fd----I:allow
client /root/smbcredentials
username=chris
password=***********
Since user "chris" is a member of "builtin_users" I would expect to have access to "/mnt/v1/main/aaaaa/", as per the getfacl output.
I'm suspicious of the "uid=65534, gid=65534" output in the smdb logs. Is smdb trying to use the wrong user to chmod?