Koozali.org: home of the SME Server

Recycle bin option in Samba

MadPat

Recycle bin option in Samba
« on: April 29, 2003, 11:44:02 AM »
I do believe it is not availble (to my knowledge), but i would be nive if there is a recycle bin option available in Samba.


Jáder Marasca

Re: Recycle bin option in Samba
« Reply #2 on: May 27, 2003, 04:19:59 AM »
Have you tried this mod in your SME server ?

guestHH

Re: Recycle bin option in Samba
« Reply #3 on: May 28, 2003, 02:31:19 AM »
which mod ?

Michael

Re: Recycle bin option in Samba
« Reply #4 on: May 29, 2003, 02:58:34 PM »
I have done a quick test on SME 5.6 (Samba 2.2.7) and it seems to work very well. I am impressed.
Thanks for the pointer RequestedDeletion.

Regards,
Michael

MadPat

Re: Recycle bin option in Samba
« Reply #5 on: May 30, 2003, 11:27:44 AM »
Can you describe exactly what you did.
did you made a template or just adjust smb.conf

AP

Re: Recycle bin option in Samba
« Reply #6 on: June 01, 2003, 11:23:26 PM »
Create /etc/e-smith/templates-custom/etc/smb.conf/11networkrecyclebin

vfs object = /usr/lib/samba/vfs/recycle.so
vfs options = /etc/e-smith/templates-custom/etc/smb.conf/52recycle

then

create /etc/e-smith/templates-custom/etc/smb.conf/52recycle

[recycle]
name = .recycle
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
maxsize = 0
exclude = *.tmp|*.temp|*.o|*.obj|~$*
excludedir = /tmp|/temp|/cache
noversions = *.doc|*.xls|*.ppt

and

/sbin/e-smith/expand-template /etc/smb.conf
service smb restart

Done

still need script to empty recycle  

find /home/e-smith/files/*/*/*/.recycle  -type f -atime +10 -exec rm {} \;



Maybe I forget something, but try it....

MadPat

Re: Recycle bin option in Samba
« Reply #7 on: June 02, 2003, 11:02:26 PM »
Perfect. works great. :-)

Strange this is not build in SME.

thanks very much. i think this has to be annouched in the forum or in a how to.

guestHH

Re: Recycle bin option in Samba
« Reply #8 on: June 05, 2003, 12:34:54 AM »
Michael,

Would you please write up a short how-to and publish it on contribs.org? This way all SME enthousiatics may benefit from your nice work.

You're cooporation and effort would be much appreciated by the community. Nice job!

TIA
Regards,
RequestedDeletion

ps. please send an e-mail to contribs@rstrat.com to request some free (SME related) hosting space for your how-to(s) :-) . They'll be glad to provide you with it!

MadPat

Re: Recycle bin option in Samba
« Reply #9 on: June 05, 2003, 02:13:13 AM »
I've made a howto on contribs.org.

AP i hope you don't mind that i used my name as the author, because i didn't know your name. i don't want to have the credits if don't earn them

Jáder Marasca

Re: Recycle bin option in Samba
« Reply #10 on: June 05, 2003, 03:29:35 PM »
Hi Patrick,

I don´t know your ALIAS was MadPat ! (I SHOULD look at e-mail...)

GREAT contrib to all SME comunity... I´l try it TODAY!

Thanks!

Jáder

guestHH

Re: Recycle bin option in Samba
« Reply #11 on: June 06, 2003, 02:22:35 AM »
Nice work and thanks Patrick!

Craig

Re: Recycle bin option in Samba
« Reply #12 on: June 06, 2003, 04:49:36 PM »
Nice one, this could save quite a few users!

I'm not quite sure what you mean by a script to empty the recycle bin.

Isn't that the users job when they run out of space, certainly the recycle bin in a default install of windows doesn't empty it out.

Many people would be very anoyed to find that they come back after the weekend, decide they need that file after all only to find that it was gone because it was deleted last Monday and so a week had gone by.

Opinions any one?

Craig

AP

Re: Recycle bin option in Samba
« Reply #13 on: June 06, 2003, 06:49:19 PM »

Dan Williams

Re: Recycle bin option in Samba
« Reply #14 on: September 25, 2003, 10:47:57 PM »
When I do this part:
pico /etc/e-smith/templates-custom/etc/smb.conf/11networkrecyclebin
And then try and save the file pico says:
"Cannot open file for writing no such file or directory"
Am I having a bad day or what?

Patrick

Re: Recycle bin option in Samba
« Reply #15 on: September 26, 2003, 11:34:14 PM »
Try to go to the dir :

/etc/e-smith/templates-custom/etc/smb.conf/
and then try
pico 11networkrecyclebin

maybe this works

Frits

Re: Recycle bin option in Samba
« Reply #16 on: October 29, 2003, 08:44:31 PM »
Pls what is the exect url to MadPat's howto i cant find it

MadPat

Re: Recycle bin option in Samba
« Reply #17 on: October 29, 2003, 10:41:36 PM »

Dan Williams

Re: Recycle bin option in Samba
« Reply #18 on: October 30, 2003, 12:15:10 AM »
When I run this,
I then can not access any of my ibays or anything??
5.5U6
Have to restore more original smb.conf, and restart Samba
dan

MadPat

Re: Recycle bin option in Samba
« Reply #19 on: October 30, 2003, 10:42:42 AM »
Can you be more specific.

i'm running v5.5 but haven't had/have any problems.

Dan Williams

Re: Recycle bin option in Samba
« Reply #20 on: October 30, 2003, 05:01:08 PM »
Hi,
I do all the steps, exactlly.
I expand the template.
I restart smb.
On my windows based workstation after doing this I can not access any of my ibays.
If I restore the smb.conf and restart smb I am good to go.
dan