AIX samba not starting on reboot

Posted on 2012-09-18
Last Modified: 2012-10-11
Hello all,

When we reboot our AIX server, samba does not automatically start and we cannot access the shares from that server.  How can I add a startup script to start samba after a reboot?

Thank you.
Question by:cbones
    1 Comment
    LVL 68

    Accepted Solution


    the usual way is putting Samba under inetd control.

    The following assumes that you're using  Samba for AIX from pWare.

    You should have these two or three lines in /etc/inetd.conf:

    netbios-ssn     stream  tcp     nowait  root    /opt/pware/samba/3.5.80/sbin/smbd smbd
    netbios-ns      dgram   udp   wait        root   /opt/pware/samba/3.5.80/sbin/nmbd nmbd

    # If desired:
    swat    stream  tcp     nowait  root    /opt/pware/samba/3.5.80/sbin/swat swat

    Please replace"3.5.80" with your actual pWare Samba version. In some environments there is no "version" part at all in the path.

    After adding these lines to /etc/inetd.conf add the following to /etc/services

    swat            910/tcp

    and run

    refresh -s inetd

    In the future inetd will start the required daemons when needed (as soon as an attempt to access a Samba port is made).


    If you're using the Samba version that comes with the AIX OS (Expansion Pack) you can simply add smbd and nmbd to inittab, with

    mkitab nmb:2:once:/usr/sbin/nmbd
    mkitab smb:2:once:/usr/sbin/smbd

    If you're additionally going to use swat add only this line to /etc/inetd.conf:
    swat    stream  tcp     nowait  root    /usr/sbin/swat swat

    add  to /etc/services
    swat            910/tcp

    and run
    refresh -s inetd


    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    26 Experts available now in Live!

    Get 1:1 Help Now