LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2010, 11:58 AM   #1
bagra
LQ Newbie
 
Registered: Jun 2009
Posts: 9
Blog Entries: 1

Rep: Reputation: 0
log of deletion from samba server


how to find detail logs of deleted file or folder from samba server
 
Old 09-16-2010, 01:05 PM   #2
ShadowCat8
Member
 
Registered: Nov 2004
Location: Ontario, CA
Distribution: Gentoo, Arch, (RedHat4.x-9.x, FedoraCore 1.x-4.x, Debian Potato-Sarge, LFS 6.0, etc.)
Posts: 226

Rep: Reputation: 51
Well, by default, samba doesn't seem to log deletes, but there is a pretty simple way to get what you are looking for. Add the following to the share definition in /etc/samba/smb.conf that you want to watch for the deletes from:
Code:
vfs objects = extd_audit
and that will put the entries for accesses and deletes of files on the share into the logs. If you are worried about deletes removing something you don't want removed, then here's an example of what I set up to try to secure a samba share from data loss:
Code:
[myshare]
        writeable = yes
        path = /mnt/thisdrv/
        write list = user1,user2
        comment = MyShare
        valid users = user1,user2
        user = user1,user2
        vfs objects = extd_audit recycle
The 'recycle' option puts anything deleted from the share into a Recycler folder, like the Recycle Bin in windoze.

HTH. Let us know.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automating Log Deletion process? your_shadow03 Linux - Newbie 1 02-25-2010 01:21 AM
Is there any way to log user samba who delete or move files/folders on samba server ? b-RAM Linux - Server 1 02-09-2010 01:33 AM
log file deletion on AIX syslog Dr_Death_UAE AIX 1 03-15-2009 03:08 PM
trying to log into samba file server adamantium Linux - Networking 2 11-26-2003 12:58 PM
Time Of Deletion Log? XAGXAGUL Linux - General 3 07-12-2003 11:24 AM


All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration