Samba on NonStop User Manual
1. Manually
a. The NS-Samba suite provides a script, /usr/local/samba/scripts/startsmb, to
start the daemons. With this, you can start smbd, nmbd or both, using the specified
configuration file. For more information, execute /usr/bin/startsmb –help.
OR
b. Execute the following steps:
/usr/sbin/smbd –D
/usr/sbin/nmbd –D
When you execute these steps, monitor the processes. If the daemons terminate, you need to
start them again.
2. From inetd
As in the case of SWAT, these processes could be started under the control of inetd, the
Internet super-server.
• In /etc/services, add the following line:
netbios-ssn 139/tcp
netbios-ns 137/udp
• Edit /etc/inetd.conf to include:
netbios-ssn stream tcp nowait super.super /usr/sbin/smbd smbd
netbios-ns dgram udp wait super.super /usr/sbin/nmbd nmbd
And then start the inetd super-server. For more information, see the inetd(8) manpage.
3. Automatically
During OSS startup, by including the commands listed in Step 1 in standard OSS startup
scripts.
Testing the NS-Samba Daemons
The next step after you start the daemons is to examine their health. A quick way to do that is to
execute the smbclient program to find out the services the NS-Samba is offering. If the daemons
are started properly, you can see the following response, when smbclient -U% -L localhost
command is executed:
18 Configuration










