permissions disappear

Status
Not open for further replies.

freenasbbs

Dabbler
Joined
Jan 9, 2014
Messages
37
Freenas version 9.2.0 --9.2.1.3 (32 bit/64bit)

Directory name 23
Directory own :FileAdmin
Directory group :wheel

I set directory 23 permissions like :
chmod 770 23
setfacl -m u:ManB:modify_set:fd:allow 23
setfacl -m g:ProdMan:modify_set:fd:allow 23

Then it shows it’s permissions like (Fig1),it is right

fig1.JPG



In order to record which one & do what in my nas,i set some auxiliary parameters in share folder (like this)

vfs objects = full_audit
full_audit:prefix = %u|%I|%m|%S
full_audit:success = mkdir rmdir write rename
full_audit:failure = none
full_audit:facility = LOCAL7
full_audit:priority = ALERT

(see : http://forums.freenas.org/index.php...-when-do-what-on-the-server.17496/#post-94141)

The Problem Is

After i reboot cifs,file’s permissions had changed (Fig2),all permissions which set by “setfacl” disappear,why?

fig2.JPG






Thank you !
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
See Samba bug report here: https://bugzilla.samba.org/show_bug.cgi?id=9956

Short version - FreeNAS middleware automatically generates an smb4.conf file with 'vfs objects = zfsacl'. When you add an additional parameter 'vfs objects = full_audit', the previous parameter is invalidated. To get around this you need to review your smb4.conf file for all parameters set regarding vfs objects, then create a full one-liner in the 'auxiliary parameters'. For example 'vfs objects = zfsacl full_audit'

I'm not in front of a freenas server and so I can't tell you what the standard vfs options are. You will need to do that bit of legwork yourself otherwise you will probably end up breaking other things.
 
Status
Not open for further replies.
Top