directory with a symlink pointing to non-existing file

Jeremy Allison jra at samba.org
Thu Oct 21 17:05:47 UTC 2021


On Thu, Oct 21, 2021 at 06:35:35PM +0200, Pavel Filipensky via samba-technical wrote:
>Hi,
>
>if on local linux file system there is a directory with only one file - a
>symlink pointing to a non-existing file then:
>- from SMB point of view the directory is *empty*, such symlink is not shown
>- but SMB does allow to delete such *empty* directory, it gives
>NT_STATUS_DIRECTORY_NOT_EMPTY
>
>This is seen with samba 4.10 and 4.13. Could there be a difference with the
>latest samba?
>
>setting those smb.conf params has no effect:
>
>allow insecure wide links = yes
>unix extensions = no
>follow symlinks = yes
>wide links = yes

Can you try setting the share parameter:

delete veto files = yes

I think this will allow a dangling symlink
to be removed when a directory is deleted
(at least in 4.15.0).



More information about the samba-technical mailing list