Koozali.org: home of the SME Server

How do you turn the recyclebin on for some ibays

tonyw

How do you turn the recyclebin on for some ibays
« 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?

Offline byte

  • *
  • 2,183
  • +2/-0
How do you turn the recyclebin on for some ibays
« Reply #1 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
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

tonyw

How do you turn the recyclebin on for some ibays
« Reply #2 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

Offline mdo

  • *
  • 355
  • +0/-0
How do you turn the recyclebin on for some ibays
« Reply #3 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
...

Offline byte

  • *
  • 2,183
  • +2/-0
How do you turn the recyclebin on for some ibays
« Reply #4 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...
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

_inferno

How do you turn the recyclebin on for some ibays
« Reply #5 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!

Offline gbentley

  • *****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
How do you turn the recyclebin on for some ibays
« Reply #6 on: July 11, 2007, 11:54:31 PM »
Can confirm on 7.1.3 - Recycle Bin works a treat !!!
"If you don't know what you want, you end up with a lot you don't."

Offline kruhm

  • *
  • 680
  • +0/-0
How do you turn the recyclebin on for some ibays
« Reply #7 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