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
-
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
-
What does '.one (hidden):' mean? On my machines everyone can see the recycle bins.
-
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
-
"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
-
I'll try it. Many thanks to kruhm
Nicola
-
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";
}
-
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
-
OOPS!!! Right! Sorry for the typemismatch. Must pay more attention when cutting and pasting.
Nicola