954,242 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Anyone make a recycle bin W/ SMB?

I have been reading on making a recycle bin for SMB shares. Anyone utilize this? It would save me the scramble for a tape if the users delete somthing they decide they need. :cheesy: :cheesy:

Ceaser
Newbie Poster
21 posts since Oct 2004
Reputation Points: 13
Solved Threads: 0
 

Hello,

I am assuming your Samba server is on the Linux box, and you are connecting from Windows over the network.

Storing the files in the Recycle Bin is very dangerous. I would rather train your users to delete only what needs to be deleted. There will always be the need for tapes in society, but you might be able to minimize that though training and education.

You are trying to develop a technical solution to a social problem. That will not work.

Christian

kc0arf
Posting Virtuoso
Team Colleague
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
 
You are trying to develop a technical solution to a social problem. That will not work.

Hear Hear!

The next time a user deletes something they needed, just look at them blankly and say, "Why'd you delete it if you needed it?", and then go out for a smoke, or for a coke, whichever suits you best. If you were facilities management, and someone put an important document through a cross-cut paper shredder, you wouldn't be held responsible for trying to recreate their document.

Education and communication is the way to do it. They need to know that deleting it makes the file "be gone". Your backup tapes are for disasters, not user stupidity. ;)

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

OK since that won't fit my situation I set it up and if anyone else wants the info I will write out the script.

vfs objects = recycle
recycle:repository = .deleted
recycle:keeptree = yes
recycle:versions = yes
recycle:maxsize = 0
recycle:exclude = *.bak/*.tmp

I also only gave myself access to the Deleted folder. It is going to save me time.

If you don't agree thats cool, but thought it may help out others.

Ceaser
Newbie Poster
21 posts since Oct 2004
Reputation Points: 13
Solved Threads: 0
 

OK since that won't fit my situation I set it up and if anyone else wants the info I will write out the script.

vfs objects = recycle recycle:repository = .deleted recycle:keeptree = yes recycle:versions = yes recycle:maxsize = 0 recycle:exclude = *.bak/*.tmp

I also only gave myself access to the Deleted folder. It is going to save me time.

If you don't agree thats cool, but thought it may help out others.

Good that you post this for reference.

Don't get me wrong, I think that what you're trying to do is very valid, but I just feel like doing this is giving users leeway to do dumb things, and just give you more headaches in the future. I mean, what happens when they go to delete the file, it goes to the Recycle Bin, and then they empty the bin. Whoops! There you go, scurrying for a tape again!

It just reminds me of the old saying: If you make something idiot-proof, they'll build a better idiot.

alc6379
Cookie... That's it
Team Colleague
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
 

Good that you post this for reference.

Don't get me wrong, I think that what you're trying to do is very valid, but I just feel like doing this is giving users leeway to do dumb things, and just give you more headaches in the future. I mean, what happens when they go to delete the file, it goes to the Recycle Bin, and then they empty the bin. Whoops! There you go, scurrying for a tape again!

It just reminds me of the old saying: If you make something idiot-proof, they'll build a better idiot.


They cant get to the .deleted folder they do not have rights to it, so I will be emptying it myself. Actually I will probably make a script that will delete anything that has been in the deleted folder longer then a week. If it happens that I need to use the protection for a particular person more then others even after being taught procedure it will be up to their project manager on the dissaplin they receive.

Ceaser
Newbie Poster
21 posts since Oct 2004
Reputation Points: 13
Solved Threads: 0
 

Hello,

Thank you for the code on how to work. Did you place this in the smb.conf file? How well is it working for you so far?

Christian

kc0arf
Posting Virtuoso
Team Colleague
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57
 
Hello, Thank you for the code on how to work. Did you place this in the smb.conf file? How well is it working for you so far? Christian

Yes it goes in the smb.conf locally for each share that you want to have the bin for. So far it has worked. I have not had any issued but I have it so they can't see it unless they have there boxes to see hidden folders, but even if they have it set they can't get into it no rights :cheesy:

oh well back to the saphire and tonic

Ceaser
Newbie Poster
21 posts since Oct 2004
Reputation Points: 13
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: