I see folders but not all of my files on my samba share

iqpascal

Cadet
Joined
Jan 17, 2019
Messages
6
Hi,

I was running 11.2 Freenas before this week with a "restore" dataset. Shared as samba share with the group smbusers and my own user account as owner.

Current situation is that I've upgraded to 11.3 2 days ago and since then I've restored some files from my backup into a folder on the restore dataset.

From the previous files I can see all files and folders on my Windows machine, but from the new restore I only see the folders but not the actual files.

I see them on the nas via the command line though so they are there. I thought maybe it's the ACLs so recursive set the acl to full permissions but still the same old.

For instance file permission on cmdline:

-rwxrwxrwx+ 1 pascal smbusers 27032 May 22 2011 gastblog.odt

# file: gastblog.odt
# owner: pascal
# group: smbusers
owner@:rwxpDdaARWcCos:------I:allow
group@:rwxpDdaARWcCos:------I:allow
everyone@:rwxpDdaARWc--s:------I:allow
everyone@:--------------:------I:allow

I also disabled the acls to no avail.

If I create a file with windows 10 in such a new folder it just shows up with the same permissions

So I am confused, can someone push me in the right direction? I've already googled but the acls was the only thing that resulted.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Why do you have the second everyone ACL? this appears to say that everyone can do nothing.

What does the directory ACL look like (the ones you can see)?
 

iqpascal

Cadet
Joined
Jan 17, 2019
Messages
6
I don't know where that extra everyone comes from but it's also on the folders I can see files in. I only set 1 everyone in the ACLs for this dataset

The folder that file is in:

# file: Frank_gastblog/
# owner: pascal
# group: smbusers
owner@:rwxpDdaARWcCos:fd----I:allow
group@:rwxpDdaARWcCos:fd----I:allow
everyone@:rwxpDdaARWc--s:fd----I:allow
everyone@:--------------:fd----I:allow
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Second everyone@ entry is intentional on SMB shares. The kernel automatically appends new owner, group, everyone entries according to umask if no inheriting entries are present.
 

iqpascal

Cadet
Joined
Jan 17, 2019
Messages
6
Strange thing if I copy the files from 1 folder to another they get visible. If I move them not. While the copied file seems to have the same permissions:

# file: Lisselotte1.jpg
# owner: pascal
# group: smbusers
owner@:rwxpDdaARWcCos:------I:allow
group@:rwxpDdaARWcCos:------I:allow
everyone@:rwxpDdaARWc--s:------I:allow
everyone@:--------------:------I:allow

# file: ../Lisselotte1.jpg
# owner: pascal
# group: smbusers
owner@:rwxpDdaARWcCos:------I:allow
group@:rwxpDdaARWcCos:------I:allow
everyone@:rwxpDdaARWc--s:------I:allow
everyone@:--------------:------I:allow
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Strange thing if I copy the files from 1 folder to another they get visible. If I move them not. While the copied file seems to have the same permissions:

# file: Lisselotte1.jpg
# owner: pascal
# group: smbusers
owner@:rwxpDdaARWcCos:------I:allow
group@:rwxpDdaARWcCos:------I:allow
everyone@:rwxpDdaARWc--s:------I:allow
everyone@:--------------:------I:allow

# file: ../Lisselotte1.jpg
# owner: pascal
# group: smbusers
owner@:rwxpDdaARWcCos:------I:allow
group@:rwxpDdaARWcCos:------I:allow
everyone@:rwxpDdaARWc--s:------I:allow
everyone@:--------------:------I:allow
Check xattrs on the files lsextattr user /path/to/dir/*. What's the output of "testparm -s"?
 
Top