IBM i Global

IBM i 

A space for professionals working with IBM’s integrated OS for Power systems to exchange ideas, ask questions, and share expertise on topics like RPG and COBOL development, application modernization, open source integration, system administration, and business continuity.


#Power


#IBMi
#Power
#Operatingsystems
#Servers
 View Only
Expand all | Collapse all

IBM i 7.6 NetServer and SMB1 clients

  • 1.  IBM i 7.6 NetServer and SMB1 clients

    Posted 10/08/26 04:10 AM

    Hi there,

    is anyone using IBM i 7.6 NetServer file shares and SMB1 clients?

    Asking for a friend 🙄



    ------------------------------
    Oliver Thomsen
    ------------------------------


  • 2.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/08/26 09:11 AM

    The reason I'm asking is, that we encountered some problems with SMB1 clients when updating files on a shared folder:
    The save operation fails (with various error messages) and the updated file is corrupt: zero bytes long!!!



    ------------------------------
    Oliver Thomsen
    ------------------------------



  • 3.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/08/26 09:48 AM

    SMBv1 (Server Message Block version 1) is an obsolete 1980s file-sharing protocol that lacks modern security controls, making systems vulnerable to remote code execution (RCE), ransomware, and lateral movement.

    So the question is do you still want this to work ?  I would suggest to remediate the SMBv1 client asap !



    ------------------------------
    Paul Nicolay
    Architect
    Cegeka
    ------------------------------



  • 4.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 02:33 AM
    Edited by Satid S 10/09/26 02:33 AM

    I just found an IBM Technote:  IBM i NetServer SMB protocol version control guide at https://www.ibm.com/support/pages/ibm-i-netserver-smb-protocol-version-control-guide  that provides a way to change SMB version enablement in IBM i.  

     



    ------------------------------
    Satid S
    ------------------------------



  • 5.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 02:20 AM
    Edited by Satid S 10/09/26 02:27 AM

    Dear Oliver

    Did you just upgrade IBM i to 7.6 and encountered the issue? If so, this can be because 7.6 (or new PTFs) defaults to SMB2 or SMB3 by design.  If you want to see if there is a chance to enable SMB1 back, you should try using GO NETS tool as described here:  Manage IBM i NetServer without Navigator - GO NETS at https://www.ibm.com/support/pages/manage-ibm-i-netserver-without-navigator-go-nets . Menu item 9 Change Attributes  should be the one you look at.  I think its parameter Encrypt Connections must NOT be set to *REQUIRED for SMB1 to work.     

    image 12034



    ------------------------------
    Satid S
    ------------------------------



  • 6.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 02:46 AM

    SMB levels can't be set via GO NETS... the guide for it can be found at IBM i NetServer SMB protocol version control guide

    You'll need to set the correct flags via the QZLSMAINT program.



    ------------------------------
    Paul Nicolay
    Architect
    Cegeka
    ------------------------------



  • 7.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 05:06 AM

    Thanks for your replys, Paul and Satid 🙏🏼

    There are no flags set on IBM i NetServer, so protocol is for the client to negotiate and encryption is set to *OPTIONAL.

    And now I think I can let the cat out of the bag, we are talking about Windows XP clients and they are only capable of SMB1.

    I would replace those clients in an instance, but unfortunately there is a software running on Windows XP, which will not run on any newer Windows versions, so I'm kind of stuck there.



    ------------------------------
    Oliver Thomsen
    ------------------------------



  • 8.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 05:17 AM

    Reading your initial comment you state that the saving fails... so if I understand correctly this means viewing/reading files works which means the problem isn't really SMBv1.

    If SMBv1 negotiation would fail you wouldn't be able to map a drive... nor view/read files in my opinion so I guess you hit another bug (which maybe only appears in combination with SMNv1).

    I suggest to open a ticket with IBM on this.



    ------------------------------
    Paul Nicolay
    Architect
    Cegeka
    ------------------------------



  • 9.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 05:40 AM

    Yes, exactly.

    I'm able to map the drives, reading files is also not the problem. Updating or creating files is failing, leaving an empty file behind (zero bytes).

    So for now I've set all file shares to read-only to prevent any further file corruption.

    I did some analysis with Claude (that's what one does nowadays) and WireShark and the suggestion of Claude is that it is very likely a bug in IBM i NetServer (with SMB1).

    Be prepared for IBM to treat SMB1 with Windows XP as a low priority. The data loss is your strongest argument, so say clearly in the case that the file is left empty.



    ------------------------------
    Oliver Thomsen
    ------------------------------



  • 10.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 08:55 AM

    Does Windows XP support other types of mounting?  See commands EXPORTFS, MOUNT, UNMOUNT

    Can you build a symbolic link, or do a MOUNT, on your directory on IBM i and have that on an alternative server which plays better with stone knives and bearskins?



    ------------------------------
    Robert Berendt IBMChampion
    Business Systems Analyst, Lead
    Dekko
    Fort Wayne
    ------------------------------



  • 11.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 09:50 AM

    Hi Robert,

    not that I'm aware of... if I could I would host the files on another server.

    But the point is that the files that are written on these IFS file shares are COBOL source files, which are then compiled on the IBM i (don't ask, long story).

    It's all part of a software development process from the last century and you know what they say: Never change a running system... 🤔 currently it's not running anymore. 



    ------------------------------
    Oliver Thomsen
    ------------------------------



  • 12.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 12:08 PM

    Opened a case at IBM support, but as expected they are not going to fix anything for outdated clients:

    From Development:

    This failing SMBv1 request is an odd edge case where the server has never honored the semantic of treating a zero length write request as a truncate to the offset value.  The tighter bounds checking on the request buffer is correctly detecting that the SMB_COM_WRITE handler is attempting to reference data past the end of the request buffer.  No data is being written, so the attempt to access the write buffer is beyond the end of the request.  The SMB_COM_WRITE operation is listed as deprecated in the MS-CIFS specification.

    This can not be patched or fixed to work with IBM i OS R760.

    Windows XP has been out of support for a very long time and IBM will not honor out of support clients.

    You will need to figure out a fix on your own with these out of support client or replace them with in support OS's.



    ------------------------------
    Oliver Thomsen
    ------------------------------



  • 13.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 10/09/26 08:14 PM
      |   view attached

    Is it possible that IBM i release upgrade to 7.6 somehow messed up with authority assignment to the folder path to the stream files at issue?  This happened before. 

    Based on this theory, have you checked for authority failure for the job doing the stream file update ?  One way to check this is to use Audit Journaling and look for AF (authority failure) entry after the issue happens.  I attach an article that describes how to do this herewith. 



    ------------------------------
    Satid S
    ------------------------------

    Attachment(s)



  • 14.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 29 days ago

    Is there a recommended alternative to using SMB?



    ------------------------------
    Luke Klugman
    ------------------------------



  • 15.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 29 days ago

    Yes, SMBv3 but there are so many ways to exchange data between systems... but it all depends on what both ends support.

    And while SMBv3 works, I doubt it is a good choice for the long term (as IBM has never really invested in it to fully support it, however it has some quirks as well).



    ------------------------------
    Paul Nicolay
    Architect
    Cegeka
    ------------------------------



  • 16.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 22 days ago

    Hi @Paul Nicolay, thanks for your reply. We are in the process of moving away from direct file shares on the IFS using SMB and was interested to know what other solutions people are using in their place. We are currently looking at using an NFS mounted drive which then allows file management through Azure but it seems quite convoluted.



    ------------------------------
    Luke Klugman
    ------------------------------



  • 17.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 22 days ago

    Just my personal opinion but I'm not a fan of NFS neither... in that case I would rather prefer a modern SMB implementation.

    But the first question should be why do you need it ?  Investigate your process first !

    (ex. I see frequently people building all sort of constructions with PC's while the task by itself can be done native on IBM i these days).



    ------------------------------
    Paul Nicolay
    Architect
    Cegeka
    ------------------------------



  • 18.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 21 days ago

    Thanks for your reply. The main use case is just to browse files on the IFS - and being able to use windows native file explorer makes this very easy. We also have SSO setup which enhances the ease of use. It is also an easy way to get hold of a joblog or report as a pdf, by putting it on the IFS and then accessing it from your pc.

    I know all of this can be done in other ways, but the simplicity of having it all available natively in file explorer is very convenient. 



    ------------------------------
    Luke Klugman
    ------------------------------



  • 19.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 21 days ago

    Paul,

    Luke, Markus and have all experienced that manager with that one unique application.  In our case it was a very old lab machine that required this ancient application running on this ancient version of Windows.  We forbade that machine from being connected to the network in any way whatsoever.  That manager, and that application are now gone.  Sometimes certain things just do not warrant any investment.  Extremely small niche market.  

    These are the kind of things that we run into.



    ------------------------------
    Robert Berendt IBMChampion
    Business Systems Analyst, Lead
    Dekko
    Fort Wayne
    ------------------------------



  • 20.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 21 days ago
    Hi Robert,

    this is of course the best solution.
    Because I am working for customers I can't decide that - just suggest it....
    So we found several ways depending on the scenario of course.





    Mit freundlichen Grüßen aus der Südwestpfalz


    Markus A. Litters
    Geschäftsleitung
    IBM Champion


    i and me – IT Training and Solutions GmbH | Schlossstr. 20 | D-66953 Pirmasens
    iandme_blau_text.jpg





  • 21.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 22 days ago

    Luke,

    I don't think you're going to have much luck with the NFS Mounts either.  Although I was one of those originally suggesting it I see now that XP has the same SMB1 only limitation on NFS Mounts also.



    ------------------------------
    Robert Berendt IBMChampion
    Business Systems Analyst, Lead
    Dekko
    Fort Wayne
    ------------------------------



  • 22.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 21 days ago

    Hi Luke,

    as always - it depends on what you want to do.

    We replace processes that use shared file systems often with Webservices or Microservices (build in RPG, Python, Node.js or Java and running on IBM i) if that makes sense (which is very often the case) or also MCP Server, that normally use these Webservices as Tools.
    Other processes can be optimized by using SSH.
    We also used NFS in the past where it made sense (when using Linux/AIX that could be an advantage).

    Right now we have a customer that moved to 7.5 and has the same problem. In his case he is still using MS DOS 6.22 running in a VM for a specific program - so you see - not only IBM i is running Legacy Code ;-)
    In this case he should replace the whole stuff of course but as we all know - that is not so easy very often...
    So he need to reactivate the SMB1 or - as an alternative - use a Linux Gateway as a wrapper. One of his ideas.

    So many ways leading to Rome.



    ------------------------------
    Markus A. Litters
    CEO
    edvberatung.litters
    Pirmasens
    +49 1775488377
    ------------------------------



  • 23.  RE: IBM i 7.6 NetServer and SMB1 clients

    Posted 21 days ago

    Hi there,

    I ended up with the following solution:

    The Windows XP machines are running on VirtualBox, so I moved that IFS shared folder to the VirtualBox host and mounting it as network drive. The generated COBOL files are then copied to the IFS shared folder (which still works) and are then compiled on IBM i.

    So the VirtualBox host in my case acts like your suggested Linux Gateway.



    ------------------------------
    Oliver Thomsen
    Neptune IT GmbH
    ------------------------------