LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 09-17-2008, 05:10 AM   #1
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Rep: Reputation: 31
Smile who deleted share file/folder in samba ?


Hello everyone
Is there any way to know who deleted samba share dir/file?


I have running samba server on FC7 machine, and my user machine is windows.


any help please!!
 
Old 09-17-2008, 09:47 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,091

Rep: Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718
Quote:
Originally Posted by megerdin View Post
Hello everyone
Is there any way to know who deleted samba share dir/file?

I have running samba server on FC7 machine, and my user machine is windows.
It depends....was it deleted from a Windows workstation, or from the Linux system?

From Windows, you could always go check the recycle bin's on different folks desktops, and see if your folder is there. From Linux, check the shell history files of the different users, and see if there's someone who deleted it.
 
Old 09-18-2008, 01:34 AM   #3
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Original Poster
Rep: Reputation: 31
Quote:
From Windows, you could always go check the recycle bin's on different folks desktops
I didn't understands ur recycle bin's on different folks desktops word.


what do u mean by this line?

would you please make a little clear this line ?
 
Old 09-18-2008, 01:58 AM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
If you have a publicly writable share, you should use "security = user" instead of "security = share", which is obsolete, so each user needs to authenticate. Also set the "sticky" bit on the directory being shared. That prevents one user from deleting another users files inside the directory. It is still up to the user saving a file to modify the write permissions of the file to prevent other users from altering or zeroing the file.

You could enable auditing in the kernel. The filesytem you use would need to support it.
 
Old 09-18-2008, 03:11 AM   #5
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Original Poster
Rep: Reputation: 31
Quote:
You could enable auditing in the kernel
How to enable please!
 
Old 09-18-2008, 05:40 AM   #6
megerdin
Member
 
Registered: Jul 2007
Location: London
Distribution: FC11,FC10,FC7,FC4,Centos 5.1,Ubuntu,Mandrake Linux,puppy.LinuxMint.Opensuse
Posts: 181

Original Poster
Rep: Reputation: 31
hel-l-l-ooooooooooooo

I got this work.I just add the following line in my smb.conf


Quote:
vfs objects = extd_audit

Now I can trace there work in samba log......

special thanks to Ubuntu Forums
 
Old 09-18-2008, 09:06 AM   #7
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 15,091

Rep: Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718Reputation: 2718
Quote:
Originally Posted by megerdin View Post
I didn't understands ur recycle bin's on different folks desktops word.


what do u mean by this line?

would you please make a little clear this line ?
Seems clear to me....go to the different Windows workstations, and look in the recycle bin.
 
  


Reply

Tags
deleted, samba, share, who


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
Deleted files through samba share; Recovery?? Zero-0-Effect Linux - General 4 05-01-2009 03:30 PM
samba share folder and file tracing greenday_ra Linux - Networking 1 06-17-2008 04:42 AM
Samba Can See Share But the File/Folder Doesn't Exist Sloppyunderfoot Linux - Server 2 07-28-2007 12:03 PM
INIT.D File deleted from /etc folder deepa_ram Linux - General 1 02-28-2005 11:54 AM
Recover My Deleted File & Folder rajaniyer123 Linux - General 0 03-12-2004 01:51 AM


All times are GMT -5. The time now is 11:00 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration