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

OursPolaire

db accounts show aladel
« Reply #15 on: July 14, 2006, 12:40:42 AM »
aladel=ibay
    CgiBin=enabled
    Gid=5001
    Group=shared
    KeepVersions=enabled
    Name=Alain Delete
    PasswordSet=no
    PublicAccess=local
    RecycleBin=enabled
    Uid=5001
    UserAccess=wr-group-rd-everyone

OursPolaire

No Recycle bin??!! Why???
« Reply #16 on: July 14, 2006, 12:59:41 AM »
On XP workstation, Explorer is set to see hidden files.

OursPolaire

No Recycle bin??!! Why???
« Reply #17 on: July 14, 2006, 01:09:19 AM »
This is what I see in Explorer:


My Network Places
.....|
.....aladel on SME Server
..........|
...........AppleDesktop
..........|
..........cgi-bin
..........|
..........files
..........|
..........html
...............|
...............index.html

OursPolaire

No Recycle bin??!! Why???
« Reply #18 on: July 14, 2006, 07:29:32 PM »
To Bytes:


These are my last settings:


db accounts show aladel:

aladel=ibay
CgiBin=enabled
Gid=5001
Group=shared
KeepVersions=enabled
Name=Alain Delete
PasswordSet=no
PublicAccess=local
RecycleBin=enabled
Uid=5001
UserAccess=wr-group-rd-everyone


In root command line:


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

Offline byte

  • *
  • 2,183
  • +2/-0
No Recycle bin??!! Why???
« Reply #19 on: July 14, 2006, 07:41:40 PM »
I don't know what's wrong then, as per my last comment I made an ibay and tested your recycle bin and it didn't work, I see you created another ibay and you are still havin problems?

I know when I did the test ibay (and the one's I use daily) they have recycle bin's, sorry can't help any more.
--[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

Some progress
« Reply #20 on: July 15, 2006, 12:22:43 AM »
Some progress :-D

With Explorer I deleted all files under "aladel on SME Server".  I did a Refresh and a Recycle Bin show up:

My Network Places
.....|
.....aladel on SME Server
..........|
...........Recycle Bin
...............|
.............. .recycle
....................|
....................index.html



But if I delete a test data file like:

My Network Places
.....|
.....alain on SME Server
..........|
...........testdatafile.txt



testdatafile.txt never show up in:

My Network Places
.....|
.....aladel on SME Server
..........|
...........Recycle Bin
...............|
...............[nothing!]


Question: Why.....?
 :-?

Offline JonB

  • *
  • 351
  • +0/-0
No Recycle bin??!! Why???
« Reply #21 on: July 15, 2006, 12:32:58 AM »
Quote
Question: Why.....?


You need to enable RecycleBin for each Ibay that you want to have a recycle bin.
Each Ibay will then have its own recycle bin. You cannot have one ibay act as a recycle bin for all other ibays.

Jon
...

OursPolaire

No Recycle bin??!! Why???
« Reply #22 on: July 15, 2006, 12:43:46 AM »
Hi JonB,

I am a rookie with the server thing and Linux.  I know some command lines and enter some parameters in SME (ver 6.5 and 7.0).   :-(

Can you show me a procedure? :-D   In my case I need only one Recycle Bin for the user Alain.  ;-)

Offline JonB

  • *
  • 351
  • +0/-0
No Recycle bin??!! Why???
« Reply #23 on: July 15, 2006, 03:41:15 AM »
This is the procedure to add Home user recycle bins

Log on to console

db configuration setprop smb RecycleBin enabled
db configuration setprop smb KeepVersions enabled

Expand Template...

/sbin/e-smith/expand-template /etc/samba/smb.conf

Remember to restart service...

/etc/rc7.d/S91smb restart

Now you should have a recycle bin for every existing and new users.

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

Jon
...

OursPolaire

It works!!!
« Reply #24 on: July 15, 2006, 01:44:06 PM »
It works!!!  8-)   8-)   8-)

It works exactly like you say in the procedure JonB.  :-D    (With Explorer) I created another user name (keepdat) to test.  I put a test data file (testdatafile.txt) in:


My Network Places
.....|
.....keepdat on SME Server
..........|
...........testdatafile.txt



I deleted testdatafile.txt and a Recycle Bin directory show up with testdatafile.txt in the Recycle Bin directory:

My Network Places
.....|
.....keepdat on SME Server
..........|
...........Recycle Bin
...............|
...............testdatafile.txt :-D


Big Thanks to you guys!!!  Especially Byte and JonB who lead me the solution.

You didn't save my life but you save my Weekend!!!   :pint:

(It's the vacation time after all:  :pint:   :pint:   :pint: )

Offline mmccarn

  • *
  • 2,653
  • +10/-0
No Recycle bin??!! Why???
« Reply #25 on: July 15, 2006, 03:07:59 PM »
Since I never knew that SME provided a "Recycle Bin" -

1. Is the SME Recycle Bin emptied as necessary to free up disk space like some other Recycle Bin's I've heard of...

2. Are there any utilities to automatically remove files from the Recycle Bin that have been there longer than some specified period?  (It looks like the "accessed date" is changed when an item is moved to "Recycle Bin".

Offline raem

  • *
  • 3,972
  • +4/-0
No Recycle bin??!! Why???
« Reply #26 on: July 15, 2006, 03:29:03 PM »
mmccarn

> Since I never knew that SME provided a "Recycle Bin" -

Put yourself on the devinfo mailing list and you will hear about a lot of things.
...

Offline lucho115

  • *****
  • 209
  • +0/-0
    • http://www.elac.com.ar
No Recycle bin??!! Why???
« Reply #27 on: March 13, 2007, 01:38:26 PM »
Code: [Select]
db configuration setprop smb RecycleBin enabled
db configuration setprop smb KeepVersions enabled

Expand Template...

/sbin/e-smith/expand-template /etc/samba/smb.conf

Remember to restart service...

/etc/rc7.d/S91smb restart


I did all like above , but my current users not have recycle bin, when then delete one file or folder nothing appear, i dont try creating a new user because i need this feature for the current users. So if anybody can helpme, i will be very thankful.
thks

Offline lucho115

  • *****
  • 209
  • +0/-0
    • http://www.elac.com.ar
No Recycle bin??!! Why???
« Reply #28 on: March 13, 2007, 01:42:53 PM »
OK, the code works OK , so i was wrong ,my error was to delete folder that dont have any file inside, but when at least exist a file in a folder, if yo delete that folder Recycle Bin appear and save that folder.
thks