LinuxQuestions.org
Help answer threads with 0 replies.
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 12-27-2010, 06:56 AM   #1
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Rep: Reputation: 16
Samba server


Hi,
is there any way to save deleted files in server any path like recycle bin in samba server. because the samba user delete file and folder by mistake.
Please give any solutions
 
Old 12-27-2010, 03:01 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Restore from backups.
 
Old 12-28-2010, 08:34 AM   #3
saran_redhat
Member
 
Registered: May 2009
Location: chennai
Posts: 247

Original Poster
Rep: Reputation: 16
samba server

Quote:
Originally Posted by stress_junkie View Post
Restore from backups.

Hi
Thanks for your reply.
Actual my need is everyday i have problem folders and files missing in my samba server. the samba users delete or move files by mistake. how to secure for this situation in my samba server.
please give any solutions
 
Old 12-28-2010, 09:10 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
A server with multiple users will probably have the old bits on the disk over written very quickly making recovering most files impossible. Are you certain the user actually deleted the file and didn't "recycle" it. Some users don't know the difference.

Performing daily backups would be a good idea, allowing you to restore files over a day old which were accidentally deleted.

You didn't indicate the filesystem used on the server. The "debugfs" program may allow you to list deleted inodes and recover the files. There are some forensic type programs, like scandisk or photorec. These tools should be used in single user mode however, taking the samba server offline. The results may be recovered files in another directory named by their old inode numbers.

It would be best to educate the users to be careful deleting files. You could try changing the settings of the file browsers so that delete doesn't show up in the context menus.

If the files being deleted are not owned by the people deleting the file, you should set the sticky bit on the directory containing the files. This prevents deletion by non-owners of the file.

Last edited by jschiwal; 12-28-2010 at 09:13 AM.
 
Old 12-28-2010, 10:27 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 19,314

Rep: Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459Reputation: 4459
Quote:
Originally Posted by saran_redhat View Post
Hi
Thanks for your reply.
Actual my need is everyday i have problem folders and files missing in my samba server. the samba users delete or move files by mistake. how to secure for this situation in my samba server.
please give any solutions
If they're deleting them from Windows clients, did you try to look in the "Recycle Bin" on their desktops??

Best advice has already been given to you; restore from backups. And if your users are stupid enough to delete their own files, there's not much you can do for them.
 
  


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
Basic Samba Server or Active Directory Central Login via LAM/LDAP/SAMBA metallica1973 Linux - Server 5 06-09-2010 12:27 PM
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
can not access samba shares from a VIRTUAL samba server using smb4k nass Fedora 0 12-13-2008 05:39 AM
Move user files from Samba server to new samba server TheB2B Linux - Server 3 11-10-2007 09:30 PM
Samba domain member server (DMS) group permissions in network with a Samba PDC srosa Linux - Networking 0 05-01-2006 06:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration