Koozali.org: home of the SME Server

Recycle Bin: hidden or not ?

Offline nicolatiana

  • *
  • 724
  • +0/-0
Recycle Bin: hidden or not ?
« on: February 29, 2008, 02:46:18 PM »
Good morning

I've done my first-time config of smeserver 7.3 and then enabled the recyclebin for users. Is working fine but the folder Recycle Bin is not .one (hidden): is this the correct behaviour ?

Nicola
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline tandum

  • *
  • 17
  • +0/-0
    • Celtic Computer Services
Re: Recycle Bin: hidden or not ?
« Reply #1 on: February 29, 2008, 06:37:43 PM »
What does '.one (hidden):' mean?  On my machines everyone can see the recycle bins.

Offline ourspolaire

  • **
  • 40
  • +0/-0
Re: Recycle Bin: hidden or not ?
« Reply #2 on: March 01, 2008, 09:38:07 PM »

Not sure to understand either.... but if you want to active the recycle bin... see:


http://forums.contribs.org/index.php?topic=32791.msg139381#msg139381




Offline kruhm

  • *
  • 680
  • +0/-0
Re: Recycle Bin: hidden or not ?
« Reply #3 on: March 02, 2008, 03:09:11 PM »
"Is working fine but the folder Recycle Bin is not .one (hidden): is this the correct behaviour ?"

Yes, it is the correct behavior. But you change that by creating a custom template. The file needed to customize is:

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

........................
Please refer to the WIKI for documenation and NOT the forums. Thanks

http://wiki.contribs.org/RecycleBin

Offline nicolatiana

  • *
  • 724
  • +0/-0
Re: Recycle Bin: hidden or not ?
« Reply #4 on: March 03, 2008, 01:38:16 PM »
I'll try it. Many thanks to kruhm

Nicola
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline nicolatiana

  • *
  • 724
  • +0/-0
Re: Recycle Bin: hidden or not ?
« Reply #5 on: March 03, 2008, 02:42:12 PM »
Changed "Recycle Bin" in ".Recycle Bin". You can make the same for 10recyclebin file in /etc/e-smith/templates/etc/smb.conf/ibays for ibays.

Working both fine

{
    $OUT = "";
    return unless (($smb{'RecycleBin'} || 'disabled') eq 'enabled');

    $vfs->{recycle}->{versions} = ($smb{'KeepVersions'} || 'disabled') eq 'enab
    $vfs->{recycle}->{repository} = ".Recycle Bin";
    $vfs->{recycle}->{keeptree} = "True";
    $vfs->{recycle}->{touch} = "True";
    $vfs->{recycle}->{exclude} = "*.tmp|*.temp|*.o|*.obj|~\$*";
    $vfs->{recycle}->{exclude_dir} = "/tmp|/temp|/cache";
}

Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Recycle Bin: hidden or not ?
« Reply #6 on: March 03, 2008, 10:21:32 PM »
Changed "Recycle Bin" in ".Recycle Bin". You can make the same for 10recyclebin file in /etc/e-smith/templates/etc/smb.conf/ibays for ibays.

Working both fine

{
    $OUT = "";
    return unless (($smb{'RecycleBin'} || 'disabled') eq 'enabled');

    $vfs->{recycle}->{versions} = ($smb{'KeepVersions'} || 'disabled') eq 'enab
    $vfs->{recycle}->{repository} = ".Recycle Bin";
    $vfs->{recycle}->{keeptree} = "True";
    $vfs->{recycle}->{touch} = "True";
    $vfs->{recycle}->{exclude} = "*.tmp|*.temp|*.o|*.obj|~\$*";
    $vfs->{recycle}->{exclude_dir} = "/tmp|/temp|/cache";
}


That is the wrong procedure!

SME Server configuration files are templated, changes should never be made in the /etc/e-smith/templates/ tree, instead make a copy of the template fragment and copy it to the same tree layout in the /etc/e-smith/templates-custom/ tree. This way changes will be kept over updates/upgrades and backup/restore actions, which above will no do.

Above should be achieved like 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, I prefer nano

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

    Save your changes after making modifications.
  • Now let the server take the necessarry actions to have the changes reflected for the ibays

    signal-event ibay-modify ibayname

    Replace ibayname with the name of your ibay, if you need to do many, you might be better of doing

    signal-event post-upgrade; signal-event reboot
« Last Edit: March 04, 2008, 10:29:14 AM by cactus »
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline nicolatiana

  • *
  • 724
  • +0/-0
Re: Recycle Bin: hidden or not ?
« Reply #7 on: March 04, 2008, 08:39:01 AM »
OOPS!!! Right! Sorry for the typemismatch. Must pay more attention when cutting and pasting.

Nicola
Consulente di Smeserver.it -  Soluzioni e supporto su Sme server in Italia.