tracking file deletions

Status
Not open for further replies.

Geoff_UK

Cadet
Joined
Jul 19, 2017
Messages
5
Hi,

First post - be gentle !

I have FreeNAS-11.0-U1 (aa82cc58d) installed in a VM for test purposes - I have a virtual disk attached and configured as a windows share. I have created 2 test accounts and can confirm that each account can map the share from windows 10 machines and can write files to it.

What I'm after is any way to determine which user deleted a file/folder.

Is this possible?

Many thanks
 

Geoff_UK

Cadet
Joined
Jul 19, 2017
Messages
5
thanks for your response. I'm a newcomer to FreeNAS - I've looked at the links you kindly supplied, it seems as if vfs_audit doesn't track file deletions?

The following Samba VFS operations are recorded:

connect
disconnect
opendir
mkdir
rmdir
open
close
rename
unlink
chmod
fchmod
chmod_acl
fchmod_acl


sorry if I'm being dense ?
 

Geoff_UK

Cadet
Joined
Jul 19, 2017
Messages
5
sorry to be a bit of a dullard, but how do I view these logs - I want to implement the FreeNAS server at work and will need to produce a report on a monthly basis to show activity.

Regards
 

nojohnny101

Wizard
Joined
Dec 3, 2015
Messages
1,477
sorry to be a bit of a dullard, but how do I view these logs - I want to implement the FreeNAS server at work and will need to produce a report on a monthly basis to show activity.

Two options:
- Login to the GUI and open up the console and navigate to the above referenced location.
- Login via external application (through SSH) and the navigate to the above referenced location.

Second method is preferred because the console has a bit of a wonky reputation.
 
Last edited:

Geoff_UK

Cadet
Joined
Jul 19, 2017
Messages
5
thanks for the assistance - seems a bit of "faff" to track the deletions, but I can at least see WHEN a file was deleted, but it doesn't appear to tell me WHO deleted it? I would have expected it to show the user??

Regards
 
Status
Not open for further replies.
Top