Koozali.org: home of the SME Server

No Recycle bin??!! Why???

OursPolaire

No Recycle bin??!! Why???
« on: July 11, 2006, 07:32:00 PM »
Hi, :-D

It seems there is no Recycle Bin anymore....  Is there a reason for this?
 :-?

Offline dsemuk

  • *****
  • 269
  • +0/-0
No Recycle bin??!! Why???
« Reply #1 on: July 11, 2006, 07:35:20 PM »
--
Esmith/Mitel/SME server  :-D...

OursPolaire

Command lines for recycle bin : doesn't work.
« Reply #2 on: July 11, 2006, 08:58:09 PM »
Thanks Dave,

I tried all the command lines without success  :-( .  I am a beginner with Linux.   Is there a clear procedure somewhere?

Offline byte

  • *
  • 2,183
  • +2/-0
No Recycle bin??!! Why???
« Reply #3 on: July 11, 2006, 10:22:43 PM »
Please explain what didn't work?

This from the command line is the correct and working procedure...

db accounts setprop ibayname RecycleBin enabled
db accounts setprop ibayname KeepVersions enabled
signal-event ibay-modify ibayname

Where ibayname is the name of your ibay
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

OursPolaire

What I did, What I understand...
« Reply #4 on: July 11, 2006, 11:41:22 PM »
Hi Byte



Here is what I did:

With Putty I logged in Root:

Then I executed those 3 lines:

db accounts setprop [ibayname] RecycleBin enabled
db accounts setprop [ibayname] KeepVersions enabled
signal-event ibay-modify [ibayname]

(Where [ibayname] is the name of your ibay.... for me it is: [recycle].)



After with Internet Explorer  I logged to https://192.168.xxx.x/server-manager.

I created my ibay:

Information bay name:  recycle.
Description:  Recycle Bin.
Group:  Everyone.
User access via file sharing or user ftp :  Write = group, read= everyone.
Public access via web or anonymous ftp :  Local network (no password required).
Execution of dynamic content (CGI, PHP, SSI) : enable.

After with Explorer, if I delete a data file on my server, no Recycle Bin is created :hammer: .

Offline byte

  • *
  • 2,183
  • +2/-0
No Recycle bin??!! Why???
« Reply #5 on: July 11, 2006, 11:59:12 PM »
Make sure you run those commands AFTER creating an ibay otherwise it won't work as your finding out.

Btw - Why create a recycle ibay ? if you create a ibay for example "bytesfiles" then run those commands after any files deleted in that ibay will go into a seperate folder hidden, so for every ibay you create you need to issue that command after creating the ibay
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

OursPolaire

I give up ..... for a while....
« Reply #6 on: July 12, 2006, 01:04:53 AM »
Hi, Byte:  "Btw - Why create a recycle ibay ? " you wrote.  Good question.  I don't know.  :-D   The only thing I want is to recreate the Recycle Bin the way it runs on SME 6.5.

I can't understand why there is no Recycle Bin like it was on the version SME 6.5.  Without further explanation, why it is fix that way, for me, this is a bug.  :roll:

It was automatic on 6.5 :  (With Explorer for exemple) You delete a data file and the Recycle Bin appears... Bingo!  No hassle.  ;-)

It is risky to put precious data on a server with the only option to delete is a no return one.  Really I don't catch this one...  :hammer:

OursPolaire

It is a bug!
« Reply #7 on: July 12, 2006, 04:11:26 AM »
Ok folks, this is really a bug. :hammer:



See that link: :roll:


http://bugs.contribs.org/show_bug.cgi?id=343


So, I will wait the patch.

Thanks to all. :-D

Offline byte

  • *
  • 2,183
  • +2/-0
No Recycle bin??!! Why???
« Reply #8 on: July 12, 2006, 11:00:27 AM »
The patch is already there, it's only open for documentation, please re-read this thread as I'm not sure your understanding how it works, it does work I use it for our ibays and it works just like 5.6/6.0

Just to re-carify to setup an ibay you MUST do...

1) Create your ibay from within the server-manager
2) Go to command line and type in the commands shown above
3) Back into your Win Client and create a folder then delete, now you will see a recycle bin

In 6.5 there was a drop down menu to turn on the recycle bin, but in version 7.0 you MUST do it from command line to enable recycle bin
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

OursPolaire

I still don't have it.
« Reply #9 on: July 13, 2006, 10:01:56 PM »
Hi Byte



I format my server and I reinstalled SME 7.0.

I wanted to have a clean machine because I did a lot of bad commands found on http://forums.contribs.org/index.php?topic=30874.0 .

I did the procedure right this time:

With Internet Explorer I logged to https://192.168.xxx.x/server-manager.

I created my ibay:

Information bay name: recycle.
Description: Recycle Bin.
Group: Everyone.
User access via file sharing or user ftp : Write = group, read= everyone.
Public access via web or anonymous ftp : Local network (no password required).
Execution of dynamic content (CGI, PHP, SSI) : enable.


With Putty I logged in Root:

Then I executed those 3 lines:

db accounts setprop [ibayname] RecycleBin enabled
db accounts setprop [ibayname] KeepVersions enabled
signal-event ibay-modify [ibayname]

(Where [ibayname] is the name of your ibay.... for me it is: [recycle].)


With Explorer (log on my user name (not root or admin))(to My Network Places) I can see a short-cut directory called "recycle on SME Server".

So I write a test data file on my server (log on my user name) and deleted it... the test file doesn't show in "recycle on SME Server". :oops:

Any idea? :roll:

-------------------------------------------------------------------------------
 :-D  :-D  :-D  :-D  :-D  :-D  :-D  :-D  :-D  :-D  :-D  :-D
I saw that near 200 folks read that post at that time.  Can you post here if you have created or not the "Recycle Bin"?

Offline byte

  • *
  • 2,183
  • +2/-0
Re: I still don't have it.
« Reply #10 on: July 13, 2006, 10:12:17 PM »
Quote from: "OursPolaire"

(Where [ibayname] is the name of your ibay.... for me it is: [recycle].)


Did you included [ ] around your ibayname? if so you dont need to just do...

db accounts setprop documents RecycleBin enabled
db accounts setprop documents KeepVersions enabled
signal-event ibay-modify documents
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

OursPolaire

Brackets
« Reply #11 on: July 13, 2006, 11:23:31 PM »
No!

I put the [brackets] to show clearly that what is inside the brackets is a name you can choose.

************************************

for my case I type:  
db accounts setprop recycle RecycleBin enabled
db accounts setprop recycle KeepVersions enabled
signal-event ibay-modify recycle

************************************

Byte, do you communicate to your SME 7.0 server with a workstation XP (so you work with Internet Explorer and Explorer) or a workstation Linux?

Offline byte

  • *
  • 2,183
  • +2/-0
No Recycle bin??!! Why???
« Reply #12 on: July 13, 2006, 11:47:16 PM »
I use WinXP Pro & SuSE 10.0, you sure you've not got hidden files enabled within windows? can you show results of....

db accounts show recycle
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline byte

  • *
  • 2,183
  • +2/-0
No Recycle bin??!! Why???
« Reply #13 on: July 14, 2006, 12:10:19 AM »
I've just went to prove something about why you would want an ibay called recycle? so I created an ibay called recycle ran all the steps above and deleted a file and as you say doesn't create a Recycle Bin folder, but if you create a test ibay and do the same the Recycle Bin folder appears, so it looks like there is conflictions somewhere using recycle as an ibay with recycle bins enabled.

So answer here - Dont create an ibay called recycle! Still not sure why you wanted too in first place  :hammer:
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

OursPolaire

db accounts show recycle
« Reply #14 on: July 14, 2006, 12:12:03 AM »
recycle=ibay
    CgiBin=enabled
    Gid=5001
    Group=shared
    KeepVersions=enabled
    Name=Recycle Bin
    PasswordSet=no
    PublicAccess=local
    RecycleBin=enabled
    Uid=5001
    UserAccess=wr-group-rd-everyone