Using the Recycle bin with Samba

From: Barsalou <barjunk@attglobal.net>
Date: Wed Mar 03 2004 - 20:29:48 PST

I just tried a new feature in Samba 3.0.2.....Recycle bin. It is pretty
neat. You can delete files from the samba share and it stores them in a
directory titled .recycle (or .recycle.<username> if you use the
setting below). Also, with these settings, it will keep a running
version of a file if you delete it and a file with the same name
exists. Additionally, if you use the keeptree option, it will store the
file in the same subdir that it was deleted from. Kinda nice.

Here are the per share settings below (these go in smb.conf):

        vfs objects = recycle
        recycle:repository = .recycle.%u
        recycle:keeptree = Yes
        recycle:versions = Yes

 

There wasn't a whole lot of info on the web about the options that I
could easily find....these settings are what I found by hunting around
in google groups.

A few things to remember:

If you don't create the .recycle bin and force its permissions, it will
get the users permissions...folks in the group probably won't be able to
delete the file...play with the permissions a little to see what affects
you can get. We used:

chown root.users .recycle
chmod 2770 root.users .recycle

I don't know if it will follow the settings of the force entries that
can be set in the smb.conf file....Can someone give this a go and let
the group know?

I was wondering if there is a similar recycle bin idea for the unix side
of things....or maybe I should just create a samba share and then mount
that as my data storage? Anyone have opinions on if that would work or
not?

This is great stuff!

-- 
Barsalou <barjunk@attglobal.net>
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Wed Mar 3 20:26:52 2004

This archive was generated by hypermail 2.1.8 : Wed Mar 03 2004 - 20:26:52 PST