Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  Problem with samba share in 4.6.4

    Posted Wed November 01, 2017 10:26 AM

    Originally posted by: StanislavOstry


    Hi all,

    Due to samba cry we have to upgrade on some customer AIX machines samba servers from 4.3.8 version to 4.6.4.

    After upgrade samba share mapping as disk failing both from windows client and for AIX cifs_fs mounting, but smbclient  in samba packages is fine  ( /opt/freeware/bin/smbclient) and I can access the share through it.

    I have tried reinstalling, tried both 4.6.4  versions (1 and 2), tried manually resloving dependencie, tried AIX yum install. Read smb.conf and tried various options. Play with share permissions etc.. No results.

    When I downgrade back to old version all is fine. Share is accessible from windows and other aix servers using cifs_fs mount.

    Maybe I missed something and need help. ( Also I am wondering if patch for sambacry didn't cut this mapping somehow :))

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: Problem with samba share in 4.6.4

    Posted Wed November 01, 2017 10:29 AM
      |   view attached

    Originally posted by: StanislavOstry


    Here is my smb.conf as attachment (confidential info changed)

     


    #AIX-Open-Source-Software
    #AIXOpenSource

    Attachment(s)

    conf
    smb.conf   800 B 1 version


  • 3.  Re: Problem with samba share in 4.6.4

    Posted Thu November 02, 2017 03:29 AM

    Originally posted by: AyappanP


    From the problem summary, i infer that cifs_fs mounting of Samba share is failing with newer Samba version. Correct ?

    AIX cifs and Samba (opensource) are two separate softwares. There could be compatibility issues since they are not developed hand in hand.

    May be things might have changed in Samba 4.6.x which the AIX cifs don't like it. Checking with the AIX cifs team seems to be the step going forward.


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 4.  Re: Problem with samba share in 4.6.4

    Posted Thu November 02, 2017 10:58 AM

    Originally posted by: StanislavOstry


    Found solution (see below) and mainly it was not about cifs_fs mount problem but samba shared was not avaliable for windows clients ie cannot be mapped as drive there.


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 5.  Re: Problem with samba share in 4.6.4

    Posted Thu November 02, 2017 10:56 AM

    Originally posted by: StanislavOstry


    Found solution after deep digging into default settings configuration old samba vs new samba.

    Problem was caused by this:


    NTLMv1 authentication disabled by default
    -----------------------------------------

    In order to improve security we have changed
    the default value for the "ntlm auth" option from
    "yes" to "no". This may have impact on very old
    clients which doesn't support NTLMv2 yet.


    So just put inside global section:

    ntlm auth = Yes 


    Restarted Samba and samba share to windows  started working again. (same with cifs_fs mounts)


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 6.  Re: Problem with samba share in 4.6.4

    Posted Thu November 02, 2017 11:03 AM

    Originally posted by: AyappanP


    Great. This will also help other Samba users in AIX. 


    #AIXOpenSource
    #AIX-Open-Source-Software