RecycleBin

From SME Server
Revision as of 17:03, 3 March 2008 by Jader (talk | contribs) (→‎Extras: format only)
Jump to navigation Jump to search

Problem

Deleted files in ibays are lost forever.

Scenario

This has been a long known issue for network admins. Files stored on another computer/server. Accidentaly hit the DELETE key. Poof! Gone. Files aren't in the local Recycle bin on the local computer. This is especially frustrating for admins who map profile parts back to the server. The users desktop, documents, etc never find their way into the local recycle bin as the users expect.

Solution

Turn on the Recycle Bin.

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

An admin can now go and retrieve the files on the server.


Extras

To change recyclebin name you must to change this files

/etc/e-smith/templates/etc/smb.conf/10recyclebin
/etc/e-smith/templates/etc/smb.conf/ibays/10recyclebin

Modifying this line:

   $vfs->{recycle}->{repository} = "Recycle Bin";


Where you change the "Recycle Bin" for something else. Eg. In Brazil would be "Lixeira"
The SME way to do this is to create a custom template. Try to avoid change those files directly!

TIP: If your name has a DOT as first character, so it will be invisible! Eg: ".Lixeira"