LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Samba server (https://www.linuxquestions.org/questions/linux-newbie-8/samba-server-852583/)

saran_redhat 12-27-2010 05:56 AM

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

stress_junkie 12-27-2010 02:01 PM

Restore from backups.

saran_redhat 12-28-2010 07:34 AM

samba server
 
Quote:

Originally Posted by stress_junkie (Post 4204594)
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

jschiwal 12-28-2010 08:10 AM

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.

TB0ne 12-28-2010 09:27 AM

Quote:

Originally Posted by saran_redhat (Post 4205372)
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.


All times are GMT -5. The time now is 10:53 AM.