TrueNAS 13-RC1 - Invalid Parameter when Setting Permissions from Windows Client

Dan Werntz

Cadet
Joined
Jun 23, 2014
Messages
1
I was testing moving to TrueNAS 13 on a fresh install of RC1 and a new disk when I ran into this issue with SMB permissions. I have this NAS joined to an AD domain which works fine. I added a new dataset and set the ACL from the TrueNAS GUI, which also works fine. I added the share and turned on SMB, again no problems. I accessed the share from a Windows 11 machine with no issue then created a folder which received all of the inherited permissions as expected. When I go to properties and try to add a user or group or modify any permission I am met with "The parameter is incorrect."


I tried the exact same exercise with TrueNAS-12.0-U8.1 and it works properly.
 

wkn

Dabbler
Joined
Dec 5, 2014
Messages
29
Try to set in auxiliary option for SMB service:

inherit acls = yes
map acl inherit = yes

and restart SMB
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
It was a logic error in the set_nt_acl() function in vfs_ixnas in 13.0-RC1. Should be fixed in next nightly build and for release in 13.0. ZFS automatically calculates inherited ACLs when a new object is created. Users should not be using those options.
 

wkn

Dabbler
Joined
Dec 5, 2014
Messages
29
You don't need to use these options if you don't want to or find them wrong, but it worked for me after update to 13.0-RC and gotten the same issue in Windows 10 devices.
 

wkn

Dabbler
Joined
Dec 5, 2014
Messages
29
Issue still NOT solved with 13.0-RELEASE.

Without set the two auxiliary options, inheritance is still broken on SMB shares. Even owner of new files gets no full access as set by ACLs.

So for me, options stay in effect at this moment.
 

tiberiusQ

Contributor
Joined
Jul 10, 2017
Messages
190
Issue still NOT solved with 13.0-RELEASE.

Without set the two auxiliary options, inheritance is still broken on SMB shares. Even owner of new files gets no full access as set by ACLs.

So for me, options stay in effect at this moment.
Are u serious ?

Try > strip acls and try again (...)
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Code:
root@truenas[/mnt/dozer/SMB]# getfacl .
# file: .
# owner: 100001106
# group: wheel
            owner@:rwxpDdaARWcCos:fd-----:allow
            group@:rwxpDdaARWc--s:fd-----:allow
group:builtin_users:rwxpDdaARWc--s:fd-----:allow
         everyone@:--------------:fd-----:allow
root@truenas[/mnt/dozer/SMB]# smbclient //127.0.0.1/SMB -U smbuser%Cats -c 'mkdir newdir'
root@truenas[/mnt/dozer/SMB]# getfacl newdir
# file: newdir
# owner: smbuser
# group: wheel
            owner@:rwxpDdaARWcCos:fd----I:allow
            group@:rwxpDdaARWc--s:fd----I:allow
group:builtin_users:rwxpDdaARWc--s:fd----I:allow
         everyone@:--------------:fd----I:allow
root@truenas[/mnt/dozer/SMB]# mkdir localdir
root@truenas[/mnt/dozer/SMB]# getfacl localdir
# file: localdir
# owner: root
# group: wheel
            owner@:rwxpDdaARWcCos:fd----I:allow
            group@:rwxpDdaARWc--s:fd----I:allow
group:builtin_users:rwxpDdaARWc--s:fd----I:allow
         everyone@:--------------:fd----I:allow

Directory created over SMB has same inherited ACL as one created locally.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Code:
root@truenas[/tmp]# touch smbtestfile                                              
root@truenas[/tmp]# smbclient //127.0.0.1/SMB -U smbuser%Cats -c 'PROMPT OFF;mput smbtestfile'
putting file smbtestfile as \smbtestfile (0.0 kb/s) (average 0.0 kb/s)
root@truenas[/tmp]# getfacl /mnt/dozer/SMB/smbtestfile                                        
# file: /mnt/dozer/SMB/smbtestfile
# owner: smbuser
# group: wheel
            owner@:rwxpDdaARWcCos:------I:allow
            group@:rwxpDdaARWc--s:------I:allow
group:builtin_users:rwxpDdaARWc--s:------I:allow
         everyone@:--------------:------I:allow
root@truenas[/tmp]# touch /mnt/dozer/SMB/localtestfile
root@truenas[/tmp]# getfacl /mnt/dozer/SMB/localtestfile 
# file: /mnt/dozer/SMB/localtestfile
# owner: root
# group: wheel
            owner@:rwxpDdaARWcCos:------I:allow
            group@:rwxpDdaARWc--s:------I:allow
group:builtin_users:rwxpDdaARWc--s:------I:allow
         everyone@:--------------:------I:allow

File created over SMB has same ACL inherited that locally created one does.
 
Top