AIX 6.1.0.0 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.
cbonesAsked:
Who is Participating?
 
woolmilkporcConnect With a Mentor Commented:
Hi,

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




wmp
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.