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.
Also samba 4.15 and 4.21 are throwing "Extended Error 123" when trying command like "rename A* B*" in DOS client...
Just a curious question: Is this a real production environment?
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.
(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.
(In reply to lngd from comment #4) We can't do that. Does running Norton Commander in FreeDos or Dosbox work/make any difference?
(In reply to Douglas Bagnall from comment #5) How about using Midnight Commander on Linux, would that work instead ?
(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!
(In reply to Rowland Penny from comment #6) Host machines running windows... But MC seams to work fine.
(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.
Is there a legal way for me trying this?
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...
(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.
(In reply to Volker Lendecke from comment #12) Ok, let us assume nobody will really care... Should I use your profile email?
(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.