Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: tonyw on February 26, 2006, 05:08:37 AM
-
Samba recycle bin is disabled in SME7. How do you turn it on for particular I-bays and not on for other I-bays?
-
Here's how to ...
db accounts ibayname setprop RecycleBin enabled
db accounts ibayname setprop KeepVersions enabled
signal-event ibay-modify ibayname
-
Hi,
That did not seem to work.
I tried:
/sbin/e-smith/db accounts shared-files setprop RecycleBin enabled
and also
db accounts shared-files setprop RecycleBin enabled
both resulted in:
usage:
/sbin/e-smith/db dbfile keys
/sbin/e-smith/db dbfile print [key]
/sbin/e-smith/db dbfile show [key]
/sbin/e-smith/db dbfile get key
/sbin/e-smith/db dbfile set key type [prop1 val1] [prop2 val2] ...
/sbin/e-smith/db dbfile setdefault key type [prop1 val1] [prop2 val2] ...
/sbin/e-smith/db dbfile delete key
/sbin/e-smith/db dbfile printtype [key]
/sbin/e-smith/db dbfile gettype key
/sbin/e-smith/db dbfile settype key type
/sbin/e-smith/db dbfile printprop key [prop1] [prop2] [prop3] ...
/sbin/e-smith/db dbfile getprop key prop
/sbin/e-smith/db dbfile setprop key prop1 val1 [prop2 val2] [prop3 val3] ...
/sbin/e-smith/db dbfile delprop key prop1 [prop2] [prop3] ...
so I tried:
/sbin/e-smith/db accounts show shared-files
which resulted in:
shared-files=ibay
CgiBin=disabled
Gid=5001
Group=shared
Name=Shared Files
PasswordSet=no
PublicAccess=none
Uid=5001
UserAccess=wr-group-rd-group
so it apears to me there is no recyclebin property?
One thing I had tried before this was:
db configuration setprop smb RecycleBin enabled
/sbin/e-smith/expand-template /etc/samba/smb.conf
/etc/rc7.d/S91smb restart
but that didn't seem to do anything either.
Thanks in advance for your help
-
I tried:
/sbin/e-smith/db accounts shared-files setprop RecycleBin enabled
and also
db accounts shared-files setprop RecycleBin enabled
both resulted in:
usage:
/sbin/e-smith/db dbfile keys
which basically means you chose the wrong syntax for that command.
Try:
db accounts setprop shared-files RecycleBin enabled
and then
db accounts show shared-files
Michael
-
One thing I had tried before this was:
db configuration setprop smb RecycleBin enabled
/sbin/e-smith/expand-template /etc/samba/smb.conf
/etc/rc7.d/S91smb restart
but that didn't seem to do anything either.
That setting is only to enable HOMES directory recycele bin
db accounts setprop shared-files RecycleBin enabled
Do'h, Micheal show's the command correctly, sorry...
-
Here is the CORRECT way to enable the RecycleBin for a specific ibay:
db accounts setprop ibayname RecycleBin enabled
db accounts setprop ibayname KeepVersions enabled
signal-event ibay-modify ibayname
i tested it and it is working!
-
Can confirm on 7.1.3 - Recycle Bin works a treat !!!
-
This thread is a perfect example why people should post links to the WIKI. Please don't copy from it, recreate steps or post to other forum threads.
If it's not in the WIKI, submit a bug to get it in there.
A one link answer is:
http://wiki.contribs.org/SME_Server:Documentation:Technical_Manual:Chapter4#iBays