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

Title: How do you turn the recyclebin on for some ibays
Post 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?
Title: How do you turn the recyclebin on for some ibays
Post by: byte on February 26, 2006, 11:16:43 AM
Here's how to ...

db accounts ibayname setprop RecycleBin enabled
db accounts ibayname setprop KeepVersions enabled
signal-event ibay-modify ibayname
Title: How do you turn the recyclebin on for some ibays
Post by: tonyw on February 27, 2006, 05:51:01 AM
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
Title: How do you turn the recyclebin on for some ibays
Post by: mdo on February 27, 2006, 09:05:16 AM
Quote
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
Title: How do you turn the recyclebin on for some ibays
Post by: byte on February 27, 2006, 02:38:59 PM
Quote from: "tonyw"

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

Quote from: "mdo"

db accounts setprop shared-files RecycleBin enabled


Do'h, Micheal show's the command correctly, sorry...
Title: How do you turn the recyclebin on for some ibays
Post by: _inferno on April 24, 2006, 09:10:07 PM
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!
Title: How do you turn the recyclebin on for some ibays
Post by: gbentley on July 11, 2007, 11:54:31 PM
Can confirm on 7.1.3 - Recycle Bin works a treat !!!
Title: How do you turn the recyclebin on for some ibays
Post by: kruhm on July 15, 2007, 03:00:05 PM
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