Koozali.org: home of the SME Server

Legacy Forums => Suggestions => Topic started by: MadPat on April 29, 2003, 11:44:02 AM

Title: Recycle bin option in Samba
Post by: MadPat 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.
Title: Re: Recycle bin option in Samba
Post by: guestHH on May 10, 2003, 07:32:43 PM
http://samba.org/ftp/unpacked/samba_2_2/examples/VFS/recycle/README
Title: Re: Recycle bin option in Samba
Post by: Jáder Marasca on May 27, 2003, 04:19:59 AM
Have you tried this mod in your SME server ?
Title: Re: Recycle bin option in Samba
Post by: guestHH on May 28, 2003, 02:31:19 AM
which mod ?
Title: Re: Recycle bin option in Samba
Post by: Michael 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
Title: Re: Recycle bin option in Samba
Post by: MadPat 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
Title: Re: Recycle bin option in Samba
Post by: AP 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....
Title: Re: Recycle bin option in Samba
Post by: MadPat 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.
Title: Re: Recycle bin option in Samba
Post by: guestHH 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!
Title: Re: Recycle bin option in Samba
Post by: MadPat 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
Title: Re: Recycle bin option in Samba
Post by: Jáder Marasca 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
Title: Re: Recycle bin option in Samba
Post by: guestHH on June 06, 2003, 02:22:35 AM
Nice work and thanks Patrick!
Title: Re: Recycle bin option in Samba
Post by: Craig 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
Title: Re: Recycle bin option in Samba
Post by: AP on June 06, 2003, 06:49:19 PM
Read

http://www.amherst.edu/~bbstone/howto/samba.html
Title: Re: Recycle bin option in Samba
Post by: Dan Williams 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?
Title: Re: Recycle bin option in Samba
Post by: Patrick 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
Title: Re: Recycle bin option in Samba
Post by: Frits on October 29, 2003, 08:44:31 PM
Pls what is the exect url to MadPat's howto i cant find it
Title: Re: Recycle bin option in Samba
Post by: MadPat on October 29, 2003, 10:41:36 PM
Frits,

try

http://www.pdebrabander.nl/howto.htm

good luck
Title: Re: Recycle bin option in Samba
Post by: Dan Williams 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
Title: Re: Recycle bin option in Samba
Post by: MadPat 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.
Title: Re: Recycle bin option in Samba
Post by: Dan Williams 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