Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: nicolatiana on February 29, 2008, 02:46:18 PM

Title: Recycle Bin: hidden or not ?
Post by: nicolatiana 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
Title: Re: Recycle Bin: hidden or not ?
Post by: tandum on February 29, 2008, 06:37:43 PM
What does '.one (hidden):' mean?  On my machines everyone can see the recycle bins.
Title: Re: Recycle Bin: hidden or not ?
Post by: ourspolaire 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



Title: Re: Recycle Bin: hidden or not ?
Post by: kruhm 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
Title: Re: Recycle Bin: hidden or not ?
Post by: nicolatiana on March 03, 2008, 01:38:16 PM
I'll try it. Many thanks to kruhm

Nicola
Title: Re: Recycle Bin: hidden or not ?
Post by: nicolatiana 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";
}

Title: Re: Recycle Bin: hidden or not ?
Post by: cactus 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:
Title: Re: Recycle Bin: hidden or not ?
Post by: nicolatiana on March 04, 2008, 08:39:01 AM
OOPS!!! Right! Sorry for the typemismatch. Must pay more attention when cutting and pasting.

Nicola