Hello,
I have some problems with permissions on my SMB shares used by Linux clients. Hopefully someone can help me find the problem as i am currently stuck.
I'm on TrueNAS Code 13.0-U3.
There are two Users user_a (uid 1111) and user_b (uid 2222) configured in TrueNAS. Both are in primary group group_g (guid 3333).
Truenas config screenshots:
- Share ACL
- Filesystem ACL
There are two ubuntu clients with users which are identically to the ones on TruenAS (name, uid, primary guid). Password is different.
There's a share both user use.
The mounts of the share is done through fstab:
and on the other client:
.credNAS contain the credentials of the corresponding TrueNAS User.
user_a saves a file "test_user_a" on that share. user_b can read it but can't edit it.
user_b saves a file "test" on that share. user_a can read it but can't edit it.
ll shows on pc cli user_a:
ll on truenas cli shows:
-> That should be the problem. But why? Why is this file saved for group "read" and not "read/write"? Is that a ubuntu problem or TrueNAS problem?
I have some problems with permissions on my SMB shares used by Linux clients. Hopefully someone can help me find the problem as i am currently stuck.
I'm on TrueNAS Code 13.0-U3.
There are two Users user_a (uid 1111) and user_b (uid 2222) configured in TrueNAS. Both are in primary group group_g (guid 3333).
Truenas config screenshots:
- Share ACL
- Filesystem ACL
There are two ubuntu clients with users which are identically to the ones on TruenAS (name, uid, primary guid). Password is different.
There's a share both user use.
The mounts of the share is done through fstab:
Code:
//nas/share /home/user_a/NAS/share cifs credentials=/.../.credNAS,iocharset=utf8,uid=1111,gid=3333,noperm 0 0
and on the other client:
Code:
//nas/share /home/user_a/NAS/share cifs credentials=/.../.credNAS,iocharset=utf8,uid=2222,gid=3333,noperm 0 0
.credNAS contain the credentials of the corresponding TrueNAS User.
user_a saves a file "test_user_a" on that share. user_b can read it but can't edit it.
user_b saves a file "test" on that share. user_a can read it but can't edit it.
ll shows on pc cli user_a:
Code:
-rwxr-xr-x 1 user_a group_a 0 Jan 7 10:39 test* -rwxr-xr-x 1 user_a group_a 0 Jan 7 11:11 test_user_a*
ll on truenas cli shows:
Code:
-rw-r--r-- 1 user_b group_g uarch 0 Jan 7 10:39 test -rw-r--r-- 1 user_a group_g uarch 0 Jan 7 11:11 test_user_a
-> That should be the problem. But why? Why is this file saved for group "read" and not "read/write"? Is that a ubuntu problem or TrueNAS problem?