RecycleBin
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!
To change the custom-template do this:
- Create the proper folder structure:
mkdir -p /etc/e-smith/templates-custom/etc/smb.conf/ibays
- Copy the template fragment to the template-custom tree
cp /etc/e-smith/templates/etc/smb.conf/ibays/10recyclebin /etc/e-smith/templates-custom/etc/smb.conf/ibays
- Use any editor to make your changes in the copied file
vi /etc/e-smith/templates-custom/etc/smb.conf/ibays/10recyclebin
Modifying this line:
$vfs->{recycle}->{repository} = "Recycle Bin";
to
$vfs->{recycle}->{repository} = "Lixeira";
(or whatever name you like) and save your changes after finish making modifications (use ESC :wq on vi editor)
- Now let the server take the necessarry actions to have the changes reflected for the ibays
signal-event ibay-modify <ibayname>
where <ibayname> is the ibay you´re changing to have a RecycleBin name different.
TIP:
1) If your name has a DOT as first character, so it will be invisible! Eg: ".Lixeira"
You could try by doing modification directly on /etc/e-smith/templates/etc/smb.conf/10recyclebin and if it works, change the template-custom.
2) I prefer this way because if I mess with something, I can just rebuild template using the signal-event stated above.