[Samba] (no subject)

Andrew Walker walker.aj325 at gmail.com
Fri Dec 18 01:20:26 UTC 2020


On Thu, Dec 17, 2020 at 6:32 PM Anders Östling via samba <
samba at lists.samba.org> wrote:

> We have been using the vfs module recycle for some time, and files are
> recycled into the specified directory. The issue is that when a file
> is saved in a directory, a zero size version of the file is created in
> the Wastebasket folder. Is this by design or have we missed something?
> In the example below, a guy received a PDF from me and saved it in a
> shared directory at 7.49 AM. Note the file sizes.
>
> ls -l /share2/Dokument/Ledning/IT
> -rwxrwx—+ 1 carl domain users 138475 Dec 17 07:49 ‘IT manaual.pdf'
>
> ls -l /share2/Wastebasket/Ledning/IT
> -rwxrwx—+ 1 carl domain users 0 Dec 17 07:49 ‘IT manaual.pdf'
>
> The relevant portion of smb.conf for this should be
>
> [Dokument]
> path = /share2/Dokument
> read only = no
> recycle:repository = /share2/Wastebasket
> recycle:keeptree = yes
> recycle:versions = yes
> recycle:exclude = *.tmp
>
> Cheers
>
> Anders
>

The "ls" output indicates that this is perhaps a FreeBSD server and files
have ACLs on them?  Also, it appears that you have an absolute path for the
recycle bin that lies outside of the share's connectpath. Depending on
server configuration this may be an issue. Can you perhaps provide the
complete share definition since VFS objects are of particular concern, and
if it's a FreeBSD server, please provide ACL information for paths in
question (getfacl <path>).


More information about the samba mailing list