SOLVED group ownership remains even after being changed

guermantes

Patron
Joined
Sep 27, 2017
Messages
213
Do the local getfacl and smbcacls commands now give expected output?

I would say no, since I would expect the group to be either users or linux_user in both instances. But it still shows one of each, just like before/above.

I went into the share config and verified the owner of the share largetemp was peter:smb-users, and then I applied ACLs recursively to force this new group into the share. I then created a new testfile3 in the same location as before.... but it has group = users anyway. I think there are demons in my NAS.

Code:
root@freenas:/mnt/TANK/largetemp/dvd-musik # getfacl testfile3
# file: testfile3
# owner: root
# group: smb-users
            owner@:rwxpDdaARWcCos:------I:allow
            group@:rwxpDdaARWcCos:------I:allow
         everyone@:r-x---a-R-c---:------I:allow
         everyone@:--------------:------I:allow

root@freenas:/mnt/TANK/largetemp/dvd-musik # smbcacls //127.0.0.1/largetemp dvd-musik/testfile3 -U linux_user
Enter NIBELHEIM\linux_user's password:
REVISION:1
CONTROL:SR|DP
OWNER:FREENAS\root
GROUP:FREENAS\users
ACL:FREENAS\root:ALLOWED/I/FULL
ACL:FREENAS\users:ALLOWED/I/FULL
ACL:Everyone:ALLOWED/I/READ
ACL:Everyone:ALLOWED/I/0x00100000
root@freenas:/mnt/TANK/largetemp/dvd-musik #
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
I would say no, since I would expect the group to be either users or linux_user in both instances. But it still shows one of each, just like before/above.

I went into the share config and verified the owner of the share largetemp was peter:smb-users, and then I applied ACLs recursively to force this new group into the share. I then created a new testfile3 in the same location as before.... but it has group = users anyway. I think there are demons in my NAS.

Code:
root@freenas:/mnt/TANK/largetemp/dvd-musik # getfacl testfile3
# file: testfile3
# owner: root
# group: smb-users
            owner@:rwxpDdaARWcCos:------I:allow
            group@:rwxpDdaARWcCos:------I:allow
         everyone@:r-x---a-R-c---:------I:allow
         everyone@:--------------:------I:allow

root@freenas:/mnt/TANK/largetemp/dvd-musik # smbcacls //127.0.0.1/largetemp dvd-musik/testfile3 -U linux_user
Enter NIBELHEIM\linux_user's password:
REVISION:1
CONTROL:SR|DP
OWNER:FREENAS\root
GROUP:FREENAS\users
ACL:FREENAS\root:ALLOWED/I/FULL
ACL:FREENAS\users:ALLOWED/I/FULL
ACL:Everyone:ALLOWED/I/READ
ACL:Everyone:ALLOWED/I/0x00100000
root@freenas:/mnt/TANK/largetemp/dvd-musik #
Might be some caching. micdlt call idmap.clear_idmap_cache
 

guermantes

Patron
Joined
Sep 27, 2017
Messages
213
Might be some caching. micdlt call idmap.clear_idmap_cache

Apparently I can't clear the cache, but at this stage I had also rebooted the server and that seems to have cleared the cache.
I still haven't booted into Windows but now I do expect to see smb-users there as well.
I think and hope this conundrum is finally explained, the problem being the users / Users mishap (that I can't explain but it apparently slipped through sometime around v11.0-U4).

Thanks so much for your patient help, anodos! Super kudos to you!

Code:
root@freenas:~ # micdlt call idmap.clear_idmap_cache
micdlt: Command not found.

root@freenas:~ # smbcacls //127.0.0.1/largetemp dvd-musik/testfile3 -U linux_user
Enter NIBELHEIM\linux_user's password:
REVISION:1
CONTROL:SR|DP
OWNER:FREENAS\root
GROUP:FREENAS\smb-users
ACL:FREENAS\root:ALLOWED/I/FULL
ACL:FREENAS\smb-users:ALLOWED/I/FULL
ACL:Everyone:ALLOWED/I/READ
ACL:Everyone:ALLOWED/I/0x00100000

root@freenas:~ # getfacl /mnt/TANK/largetemp/dvd-musik/testfile3
# file: /mnt/TANK/largetemp/dvd-musik/testfile3
# owner: root
# group: smb-users
            owner@:rwxpDdaARWcCos:------I:allow
            group@:rwxpDdaARWcCos:------I:allow
         everyone@:r-x---a-R-c---:------I:allow
         everyone@:--------------:------I:allow
root@freenas:~ #
 
Top