Lost access to directory after deleting

urobe

Contributor
Joined
Jan 27, 2017
Messages
113
Hey there,

I have FreeNAS-11.3-U2 running an smb share with ACL set for specific users.

trying to delete a directory, the content of the folder got deleted, but one subfolder. This subfolder now is inaccessible and can't be deleted. I can't even see the owner of the folder.

it looks like this:

x:\dir1\dir2\subfolder1

I tried to delete dir2. The content got deleted, but subfolder1 still exists but can't be accessed any more.

All folders and files should have had the same owner and access rights. (Basically a specific group is allowed, while two useres of the group are denied)

is there a way to gain ownership again?

Any help is greatly appreciated!

Kind regards, Tobi
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
Did you delete this from Windows, or from the FreeNAS shell?
 

Samuel Tai

Never underestimate your own stupidity
Moderator
Joined
Apr 24, 2020
Messages
5,399
When you set up the share, did you enable "Export Recycle Bin" or "Enable Shadow Copies" (which also requires a regular snapshot task to create the shadows)?

The only other way to delete the subfolder is from the FreeNAS shell.
 
Top