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.  Samba upgrade in AIX

    Posted Wed October 16, 2019 04:01 AM

    Originally posted by: Michael Jeyson


    I am trying upgrade the samba in AIX server .earlier it was lpp format ..but I installed latest rpm for samba

    root@njqaedi02:/home/root > rpm -qa |grep samba

    samba-libs-4.10.6-1.ppc
    samba-client-4.10.6-1.ppc
    samba-common-4.10.6-1.ppc
    samba-4.10.6-1.ppc
    samba-winbind-4.10.6-1.ppc
    samba-devel-4.10.6-1.ppc
    samba-winbind-clients-4.10.6-1.ppc
    root@njqaedi02:/home/root >
    root@njqaedi02:/home/root > ls -rlt /etc/samba/smb.conf
    -rw-r--r-- 1 root system 11120 Oct 10 09:41 /etc/samba/smb.conf
    root@njqaedi02:/home/root > ps -ef | grep mbd
    root 14680256 23265442 0 07:53:33 pts/0 0:00 grep mbd
    root 18153626 3211490 0 Oct 10 - 0:02 nmbd
    root@njqaedi02:/home/root >

     

    smbd service is still not up ..I am trying to bring up smbd up ...

     

    root@njqaedi02:/home/root > /usr/local/samba/sbin/smbd -D
    root@njqaedi02:/home/root >

    root@njqaedi02:/home/root > ps -ef|grep mbd
    root 18153626 3211490 0 Oct 10 - 0:02 nmbd
    root@njqaedi02:/home/root >

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 2.  Re: Samba upgrade in AIX

    Posted Wed October 16, 2019 04:06 AM

    Originally posted by: Michael Jeyson


    I see this message in log ..smbd is not up and also I see "smbd version 3.0.24 started." in log .

     

    [2019/10/16 07:59:44, 0] smbd/server.c:main(847)
    smbd version 3.0.24 started.
    Copyright Andrew Tridgell and the Samba Team 1992-2006
    [2019/10/16 07:59:44, 0] param/loadparm.c:map_parameter(2690)
    Unknown parameter encountered: "map_to_guest"
    [2019/10/16 07:59:44, 0] param/loadparm.c:lp_do_parameter(3420)
    Ignoring unknown parameter "map_to_guest"
    [2019/10/16 07:59:44, 0] passdb/pdb_interface.c:guest_user_info(295)
    guest_user_info: Unable to locate guest account [nosuchuser]!
    [2019/10/16 07:59:44, 0] smbd/server.c:main(960)
    ERROR: failed to setup guest info.
    [2019/10/16 07:59:46, 0] smbd/server.c:main(847)
    smbd version 3.0.24 started.
    Copyright Andrew Tridgell and the Samba Team 1992-2006
    [2019/10/16 07:59:46, 0] param/loadparm.c:map_parameter(2690)
    Unknown parameter encountered: "map_to_guest"
    [2019/10/16 07:59:46, 0] param/loadparm.c:lp_do_parameter(3420)
    Ignoring unknown parameter "map_to_guest"
    [2019/10/16 07:59:46, 0] passdb/pdb_interface.c:guest_user_info(295)
    guest_user_info: Unable to locate guest account [nosuchuser]!
    [2019/10/16 07:59:46, 0] smbd/server.c:main(960)
    ERROR: failed to setup guest info.
    root@njqaedi02:/home/root >

     


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 3.  Re: Samba upgrade in AIX

    Posted Wed October 16, 2019 04:07 AM

    Originally posted by: Michael Jeyson


    Samba rpm version is 4.10. but in the log , I see "smbd version 3.0.24 started."

    why it refers old lpp version of samba ...why smbd is not up 

     

    root@njqaedi02:/home/root > rpm -qa |grep samba
    samba-libs-4.10.6-1.ppc
    samba-client-4.10.6-1.ppc
    samba-common-4.10.6-1.ppc
    samba-4.10.6-1.ppc
    samba-winbind-4.10.6-1.ppc
    samba-devel-4.10.6-1.ppc
    samba-winbind-clients-4.10.6-1.ppc
    root@njqaedi02:/home/root >


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 4.  Re: Samba upgrade in AIX

    Posted Wed October 16, 2019 04:48 AM

    Originally posted by: AyappanP


    AIX Toolbox packages delivers the files in /opt/freeware. And some creates symbolic links to /usr. 

    So you should be invoking /opt/freeware/sbin/smbd 


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 5.  Re: Samba upgrade in AIX

    Posted Wed October 16, 2019 01:06 PM

    Originally posted by: Michael Jeyson


    Still smbd is not up ..

    root@njqaedi02:/opt/freeware/sbin >
    root@njqaedi02:/opt/freeware/sbin > /opt/freeware/sbin/smbd -D
    root@njqaedi02:/opt/freeware/sbin > /opt/freeware/sbin/nmbd -D
    root@njqaedi02:/opt/freeware/sbin > ps -ef|grep mbd
    root 13172980 22216896 0 17:00:01 pts/0 0:00 grep mbd
    root 15859934 1 0 16:59:51 - 0:00 /opt/freeware/sbin/nmbd -D
    root@njqaedi02:/opt/freeware/sbin >
    root@njqaedi02:/opt/freeware/sbin > ps -ef|grep mbd
    root 3276864 22216896 0 17:00:34 pts/0 0:00 grep mbd
    root 15859934 1 0 16:59:51 - 0:00 /opt/freeware/sbin/nmbd -D
    root@njqaedi02:/opt/freeware/sbin >

     


    #AIX-Open-Source-Software
    #AIXOpenSource


  • 6.  Re: Samba upgrade in AIX

    Posted Wed October 16, 2019 01:38 PM

    Originally posted by: Michael Jeyson


    location of smb.conf file is same for both lpp and rpm (AIXtoolbox)

    /etc/samba/smb.conf

     


    root@njqaedi02:/opt/freeware/bin > ls -rlt /etc/samba/smb.conf
    -rw-r--r-- 1 root system 11120 Oct 10 09:41 /etc/samba/smb.conf
    root@njqaedi02:/opt/freeware/bin >

     

    is this correct file or do we needs to use different location of smb.conf for AIX toolbox samba rpm version .

     

    do we have any log file for smbd ,nmbd in /opt/freeware ?


    #AIXOpenSource
    #AIX-Open-Source-Software


  • 7.  Re: Samba upgrade in AIX

    Posted Thu October 17, 2019 05:51 AM
      |   view attached

    Originally posted by: AyappanP


    Some issue with forum. So attaching the text in a file.


    #AIX-Open-Source-Software
    #AIXOpenSource

    Attachment(s)

    txt
    samba.txt   316 B 1 version