[Samba] confirm deletion - possible?

Andrew Walker walker.aj325 at gmail.com
Wed Jan 20 17:05:43 UTC 2021

On Wed, Jan 20, 2021 at 7:11 AM Stefan G. Weichinger via samba <
samba at lists.samba.org> wrote:

> Am 19.01.21 um 15:40 schrieb Peter Milesson via samba:
> > It's really strange that you don't get a confirmation dialog from
> > Windows 10. I have got an ancient stand alone Samba server ver. 4.0.9,
> > kernel 3.11.0, OS Slackware 14.0. It's really ancient stuff. I use it
> > frequently from Windows 10 (20H2), and Windows always asks if I want to
> > delete the file permanently. Mounting a share on the box from Linux, I
> > will get the confirmation question if the OS is setup in that way
> > (CentOS default). Other Linuxes just delete the files without further
> > nagging. Total Commander in Android also asks politely. So it's a client
> > thing.
> Ah, interesting, thanks.
> In this case I can only believe what the users tell me. They access the
> shares from some thin clients, and these are AD-members in the ADS of
> the "large company", while their samba-server is in a separated subnet
> which I run for that one "department".
> So I don't have access to the TCs to check things, I could only test it
> with some windows PC from my place (which definitely runs other group
> policies etc).
> > As was suggested previously, using some kind of network recycle bin may
> > be a good idea to protect files from disappearing permanently (also keep
> > good backups, if the files may be valuable).
> Yes, I suggested that already. And I assume they will want me to turn
> that on soon.
> I also run rsnapshots on the filesystems below the shares ... plus
> backups to tape.
> It's not that I/we don't have layers of backups, they want some rules in
> place to avoid mistakes from the start.
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

As a user I've _never_ hastily clicked through dialog boxes that kept
popping up, which were preventing me from doing $thing only to realize a
moment later that I had deleted $reallyimportantthing. :))).

Sounds like you're on a good path. If you go with the recycle bin idea, you
can make your repository something like "recycle:repository = .recycle/%U",
which will basically create per-user recycle bins. This will help to track
down the offending user as well as preserving the file.

More information about the samba mailing list