Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.