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
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
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.
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
2,820 posts since Dec 2003
Reputation Points: 186
Solved Threads: 147
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
1,937 posts since Mar 2004
Reputation Points: 121
Solved Threads: 57