[Samba] hp-ux samba windows client fails to delete directory

Ralph Boehme slow at samba.org
Thu Nov 28 13:19:16 UTC 2019

On 11/28/19 11:13 AM, Kumar, Arjit (SSTO) via samba wrote:
> I am able to re-produce the same behavior with samba 4.10.0 on Ubuntu 1904 as it was on hp-ux with samba 4.9.0.
> Scenario:-
> 1.      Configure samba as PDC and start smbd and nmbd daemons.
> 2.      Map samba share on 2 Windows PC#1 and PC#2 with same credentials created by pdbedit -a  command
> 3.      Windows PC#1 creates two directories, \FOLDER_A\FOLDER_B in the Samba share
> 4.      Change directory to \
> 5.      Windows PC#2 changes from a current directory to \FOLDER_A\FOLDER_B (i.e., user on PC#2 is accessing FOLDER_B under FOLDER_A and session is active)
> 6.      Windows PC#1 tries to delete \FOLDER_A
> Sometimes, \FOLDER_A\FOLDER_B gets deleted but not \FOLDER_A, while sometime both  \FOLDER_A and , \FOLDER_A\FOLDER_B got deleted.
> 7.      Same behavior is seen when doing those operations using smbclient on HP-UX
> NOTE: If no user is accessing FOLDER_B, removal of FOLDER_A is successful.
> Please help me understand what should be the expected behavior in such scenario.

yes, probably works as designed. Cf the option "strict rename", it
applies to deleting directories as well. It's disabled by default which
explains why you can delete modulo strange errors.


Ralph Boehme, Samba Team                https://samba.org/
Samba Developer, SerNet GmbH   https://sernet.de/en/samba/
GPG-Fingerprint   FAE2C6088A24252051C559E4AA1E9B7126399E46

More information about the samba mailing list