Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: OursPolaire on July 11, 2006, 07:32:00 PM
-
Hi, :-D
It seems there is no Recycle Bin anymore.... Is there a reason for this?
:-?
-
You didn't look for it.
http://forums.contribs.org/index.php?topic=30874.0
Dave
-
Thanks Dave,
I tried all the command lines without success :-( . I am a beginner with Linux. Is there a clear procedure somewhere?
-
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
-
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: .
-
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
-
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:
-
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
-
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
-
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"?
-
(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
-
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?
-
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
-
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:
-
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
-
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
-
On XP workstation, Explorer is set to see hidden files.
-
This is what I see in Explorer:
My Network Places
.....|
.....aladel on SME Server
..........|
...........AppleDesktop
..........|
..........cgi-bin
..........|
..........files
..........|
..........html
...............|
...............index.html
-
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
-
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.
-
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.....?
:-?
-
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
-
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. ;-)
-
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
-
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: )
-
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".
-
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.
-
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
-
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