Bug 15731 - DOS Norton Commander 5 viewer gets "Too many open files"
Summary: DOS Norton Commander 5 viewer gets "Too many open files"
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Printing (show other bugs)
Version: 4.15.13
Hardware: All Other
: P5 normal (vote)
Target Milestone: ---
Assignee: printing-maintainers
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-10-02 10:15 UTC by lngd
Modified: 2024-10-13 13:20 UTC (History)
2 users (show)

See Also:


Attachments
screen capture of DOS VM (209.03 KB, video/webm)
2024-10-02 10:15 UTC, lngd
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description lngd 2024-10-02 10:15:46 UTC
Created attachment 18457 [details]
screen capture of DOS VM

I have fresh ubuntu 22 server, installed distro's samba 4.15 and made simplest standalone samba share:

[global]

   server min protocol = LANMAN2
   workgroup = radio
   server string = %h server (Samba, Ubuntu)
   log file = /var/log/samba/log.%m
   max log size = 1000
   logging = file
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user

[rdisk]
   comment = test R share
   path = /srv/R
   guest ok = yes
   read only = no
   force user = us22operator
   force group = us22operator

Everything is fine except when i use MS-DOS VM (virtualbox) as a client to browse samba share. When Norton Commander built-in utility viewer count number of folders and files in any folder, samba throws "dptr_create: returned 255: Error - all old dirptrs in use ?" in log file and "Too many open files" in client (this message is result of "dir" command), so browsing in clinet is no longer possible, cause it is stuck in empty directory with no way back (video in attachment). This occurs only when Norton Commander built-in utility viewer is on and there is counting of subfolders and files.
I also have ubuntu 18 server with distro's samba 4.7 and described above does not occur in this situation, means all subfolders and files are counted without "DoS".
My suggestion: as error messages are caused by source3/smbd/dir.c function "dptr_create", perhaps major changes started in 4.12 caused this situation, that Norton Commander built-in utility unable to make counting correct...
I checked it with Norton Commander 4.0 and there is NO such problem, so basically Norton Commander 5+ causes this problem for samba 4.12 and younger.
Comment 1 lngd 2024-10-04 11:23:27 UTC
Also samba 4.15 and 4.21 are throwing "Extended Error 123" when trying command like "rename A* B*" in DOS client...
Comment 2 Volker Lendecke 2024-10-04 12:31:15 UTC
Just a curious question: Is this a real production environment?
Comment 3 Volker Lendecke 2024-10-04 12:32:45 UTC
I'm mainly asking because it will be a bit difficult to reproduce, I don't have a real MS-DOS box around, not speaking of a Norton Commander license.
Comment 4 lngd 2024-10-04 15:00:30 UTC
(In reply to Volker Lendecke from comment #2)
A long time ago it was Novell NetWare servers "cluster" with compaq's running DOS + Norton Commander as clients. It was migrated to ubuntu 18 server as a file sharing on samba and it is now a "real production environment" with migrated to virtualbox vms DOS clients. As I mentioned, ubuntu 18 goes with 4.7 samba which works fine with Norton Commander, but now, in terms of security and perfomance (python3.10 required) i want to migrate to ubuntu 22. And it's samba 4.15 can't work with Norton Commander,not only with fs tree counting but with wildcard recognizing... I'm not shure, but i believe Microsoft and Symantec doesn't care about someone running their 30+ years soft somewhere locally, plus if I'm not wrong, the license it was distibuted with apllies only on purchase, so if one somehow has this soft it is not illegal, especially if they doesn't support it anymore. I can provide vbox vm that is ready to use to reproduce.
Comment 5 Douglas Bagnall 2024-10-06 01:12:16 UTC
(In reply to lngd from comment #4)
We can't do that.

Does running Norton Commander in FreeDos or Dosbox work/make any difference?
Comment 6 Rowland Penny 2024-10-06 07:54:29 UTC
(In reply to Douglas Bagnall from comment #5)
How about using Midnight Commander on Linux, would that work instead ?
Comment 7 lngd 2024-10-06 07:58:20 UTC
(In reply to Douglas Bagnall from comment #5)
I'm sorry, can't do what? Run DOS? I will check FreeDOS and DOSBox, thank you for idea!
Comment 8 lngd 2024-10-06 08:00:09 UTC
(In reply to Rowland Penny from comment #6)
Host machines running windows... But MC seams to work fine.
Comment 9 Rowland Penny 2024-10-06 13:46:58 UTC
(In reply to lngd from comment #8)

Something sounds strange here, you say you want to upgrade to Ubuntu 22.04 for 'security', but you need to use an application that had its last release 26 years ago, the two things together do not make sense to me.
Comment 10 Volker Lendecke 2024-10-07 09:36:28 UTC
Is there a legal way for me trying this?
Comment 11 lngd 2024-10-10 11:10:29 UTC
Ok, does anyone already has freedos with mounted samba shares? I mean how it might be done? I can see fresh freedos can do anything with network but mount shares from the box...
Comment 12 Volker Lendecke 2024-10-11 15:19:01 UTC
(In reply to lngd from comment #11)
> Ok, does anyone already has freedos with mounted samba shares? I mean how it
> might be done? I can see fresh freedos can do anything with network but
> mount shares from the box...

Not me. The question is -- would anybody these days care if you just sent me a VM with your setup, of course sanitized from any sensitive data. I do have a MSDN account with Windows licenses for testing, and it seems you can download Norton Commander from various sites. It's just that I will not really spend a weekend trying to set this up.
Comment 13 lngd 2024-10-12 14:27:48 UTC
(In reply to Volker Lendecke from comment #12)
Ok, let us assume nobody will really care... Should I use your profile email?
Comment 14 Volker Lendecke 2024-10-13 13:20:51 UTC
(In reply to lngd from comment #13)
> (In reply to Volker Lendecke from comment #12)
> Ok, let us assume nobody will really care... Should I use your profile email?

Sure, that should work. If the image is too large for mail, send me a download link.