[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1130
  • Last Modified:

AIX samba not starting on reboot

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.
1 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now