SAMBA: The WIN 10 client cannot delete a non-empty directory

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Goto page 1, 2  Next
Author Message
PavelVD
DD-WRT User


Joined: 26 Jul 2019
Posts: 109

PostPosted: Sun Sep 03, 2023 0:12    Post subject: SAMBA: The WIN 10 client cannot delete a non-empty directory Reply with quote
This has been going on for some time in the latest firmware, I did not track it, and it was not leisure to write. But in the piggy bank of SAMBA problems, you may need to put. So the initial data:
Current firmware: DD-WRT v3.0-r53396 std (08/21/23)

USB:
--- /dev/sda1
Block device, size 928.5 GiB (996985140224 bytes)
Ext4 file system
Volume name "jffs".

Samba Server:
Access Leve - Everyone;
Minimum Protocol Version - 2.10;
Maximum Protocol Version - 3.11;
Encryption - Off.

The client (current) Windows 10 Pro, version 22H2, build 19045.3324 - cannot delete any non-empty folder from the SAMBA server. When you try to delete a folder through Windows Explorer (and other methods), it disappears from the screen, but only until the current folder is updated. For example, if you change the directory and return, then the deleted folder will be in place. No error messages are displayed.
You can first delete all the files in this folder, and then her - everything will be fine. You can move the folder to a local disk - after moving, the original folder will be deleted. But just delete... I can't do it.
If you have any advice for me, please offer it.

_________________
Linksys WRT1900ACSv2
Automatically adjustable temperature, always within the range of 59-68°С.
Sponsor
Alozaros
DD-WRT Guru


Joined: 16 Nov 2015
Posts: 6447
Location: UK, London, just across the river..

PostPosted: Sun Sep 03, 2023 4:51    Post subject: Reply with quote
i think this behavior is linked to the Ext4 FS...if im not wrong... Cool
_________________
Atheros
TP-Link WR740Nv1 ---DD-WRT 55630 WAP
TP-Link WR1043NDv2 -DD-WRT 55723 Gateway/DoT,Forced DNS,Ad-Block,Firewall,x4VLAN,VPN
TP-Link WR1043NDv2 -Gargoyle OS 1.15.x AP,DNS,QoS,Quotas
Qualcomm-Atheros
Netgear XR500 --DD-WRT 55779 Gateway/DoH,Forced DNS,AP Isolation,4VLAN,Ad-Block,Firewall,Vanilla
Netgear R7800 --DD-WRT 55819 Gateway/DoT,AD-Block,Forced DNS,AP&Net Isolation,x3VLAN,Firewall,Vanilla
Netgear R9000 --DD-WRT 55779 Gateway/DoT,AD-Block,AP Isolation,Firewall,Forced DNS,x2VLAN,Vanilla
Broadcom
Netgear R7000 --DD-WRT 55460 Gateway/SmartDNS/DoH,AD-Block,Firewall,Forced DNS,x3VLAN,VPN
NOT USING 5Ghz ANYWHERE
------------------------------------------------------
Stubby DNS over TLS I DNSCrypt v2 by mac913
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1959

PostPosted: Sun Sep 03, 2023 7:54    Post subject: Reply with quote
Read/Write/Execute .... file permissions problem?
_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
flood404
DD-WRT User


Joined: 18 Dec 2013
Posts: 337

PostPosted: Mon Sep 11, 2023 2:12    Post subject: Re: SAMBA: The WIN 10 client cannot delete a non-empty direc Reply with quote
PavelVD wrote:
This has been going on for some time in the latest firmware, I did not track it, and it was not leisure to write. But in the piggy bank of SAMBA problems, you may need to put. So the initial data:
Current firmware: DD-WRT v3.0-r53396 std (08/21/23)

USB:
--- /dev/sda1
Block device, size 928.5 GiB (996985140224 bytes)
Ext4 file system
Volume name "jffs".

Samba Server:
Access Leve - Everyone;
Minimum Protocol Version - 2.10;
Maximum Protocol Version - 3.11;
Encryption - Off.

The client (current) Windows 10 Pro, version 22H2, build 19045.3324 - cannot delete any non-empty folder from the SAMBA server. When you try to delete a folder through Windows Explorer (and other methods), it disappears from the screen, but only until the current folder is updated. For example, if you change the directory and return, then the deleted folder will be in place. No error messages are displayed.
You can first delete all the files in this folder, and then her - everything will be fine. You can move the folder to a local disk - after moving, the original folder will be deleted. But just delete... I can't do it.
If you have any advice for me, please offer it.







This has been an issue for quite some time now. It happens on the x64 bit build. I am using the r53045 since Samba quits working completely on anything newer. You can delete a directory or files and it will pretend it did delete it. Yes about no errors any indications that it didn't succeed the operation. If you refresh the directory the folders and files were never deleted they reappear. You can create new files and new directory's just fine.
UncleDaddySwiss
DD-WRT Novice


Joined: 10 Oct 2020
Posts: 12

PostPosted: Fri Nov 24, 2023 21:55    Post subject: Reply with quote
I have the same problem, can create files/folders, but can't permanently delete folders. (Haven't tried deleting files yet.) v3.0-r53445 std (08/27/23)
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1083
Location: WV, USA

PostPosted: Fri Nov 24, 2023 23:10    Post subject: Reply with quote
If you ssh or telnet into your router, cd to your mounted shared drive and do a ls -l and check the permissions. They should be similar to this:
Code:

drwxrwxr-x    3 root     root          4096 Aug  8  2022 MyData

You can also delete it from here by issuing this command:
Code:

rm -rf foldername

BE CAREFUL, as this command uses -r which means recursive and -f which means force. It this doesn't work, then you probably have a corrupted filesystem.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
UncleDaddySwiss
DD-WRT Novice


Joined: 10 Oct 2020
Posts: 12

PostPosted: Sat Nov 25, 2023 1:12    Post subject: Reply with quote
I cannot even telnet into the router. I'm using 'root' for the user name and my set password via GUI for the password. when I try to enter the password, the cursor doesn't even move (Looks like its not even entering. Not sure if its a security feature of telnet or if something else is going on.) Ether way, it says incorrect login.
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1083
Location: WV, USA

PostPosted: Sat Nov 25, 2023 1:28    Post subject: Reply with quote
UncleDaddySwiss wrote:
I cannot even telnet into the router. I'm using 'root' for the user name and my set password via GUI for the password. when I try to enter the password, the cursor doesn't even move (Looks like its not even entering. Not sure if its a security feature of telnet or if something else is going on.) Ether way, it says incorrect login.

Just tried telnet myself, and you are right. Not working (r53562). Tried logging in with root/WebUIPW and no go. Just try enabling SSH under Services tab, NOT the Administrator tab. Then use Putty to ssh into it. Depending on what Windows version you are using, you may be able to use ssh directly from the Windows console. Not sure. I don't use Windows.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
UncleDaddySwiss
DD-WRT Novice


Joined: 10 Oct 2020
Posts: 12

PostPosted: Sat Nov 25, 2023 1:40    Post subject: Reply with quote
Actually just got to thinking, I created a file and then put it into a folder I created. I couldnt delete the folder that i just created either.
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1083
Location: WV, USA

PostPosted: Sat Nov 25, 2023 1:46    Post subject: Reply with quote
UncleDaddySwiss wrote:
Actually just got to thinking, I created a file and then put it into a folder I created. I couldnt delete the folder that i just created either.

If you can create it, you should be allowed to delete it. Maybe do a filesystem check on it.
Code:

fsck /dev/sdxN

Unmount it before doing this.
Code:

umount /dev/sdxN

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
UncleDaddySwiss
DD-WRT Novice


Joined: 10 Oct 2020
Posts: 12

PostPosted: Sat Nov 25, 2023 1:49    Post subject: Reply with quote
OK, this is getting stranger by the minute. I CAN delete a folder, but only if its empty. If it has anything in it, a file or even another empty folder, the original folder will not permanently delete. A file will permanently delete. So far. In my experience.
UncleDaddySwiss
DD-WRT Novice


Joined: 10 Oct 2020
Posts: 12

PostPosted: Sat Nov 25, 2023 1:53    Post subject: Reply with quote
If you can create it, you should be allowed to delete it. Maybe do a filesystem check on it.
Code:

fsck /dev/sdxN

Unmount it before doing this.
Code:

umount /dev/sdxN
[/quote]

I take it these are telnet commands? I cant telnet in.
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1083
Location: WV, USA

PostPosted: Sat Nov 25, 2023 1:59    Post subject: Reply with quote
Enable SSH in Services then use SSH instead of telnet.
_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 1083
Location: WV, USA

PostPosted: Sat Nov 25, 2023 2:09    Post subject: Reply with quote
Look for this under the Services tab. You can try the native windows shell first:
Code:

ssh root@routerIP

If that doesn't work, download Putty and use that instead.

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r55799

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
UncleDaddySwiss
DD-WRT Novice


Joined: 10 Oct 2020
Posts: 12

PostPosted: Sat Nov 25, 2023 2:48    Post subject: Reply with quote
Ok, got ssh working via powershell, Putty didn't even work. But, I don't even know the basics here, how do ya change directories to the mounted drive?
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum