Page 270 - DCAP602_NETWORK_OPERATING_SYSTEMS_I
P. 270
Network Operating Systems-I
notes 14.3 starting and stopping of samba server
Samba basically consists of two or three daemons. A daemon is a UNIX application that runs
in the background and provides services. An example of a service is the Apache Web server for
which the daemon is called httpd. In the case of Samba there are three daemons, two of which
are needed as a minimum.
The Samba server is made up of the following daemons:
1. nmbd: This daemon handles all name registration and resolution requests. It is the main
vehicle involved in network browsing. It handles all UDP-based protocols. The nmbd
daemon should be the first command started as part of the Samba startup process.
2. smbd: This daemon handles all TCP/IP-based connection services for file- and print-based
operations. It also controls local authentication. It should be started immediately following
the startup of nmbd.
3. winbindd: This daemon supposed to be started when Samba is a member of a Windows
NT4 or ADS domain. It is also needed when Samba has trust relationships with another
domain. The winbindd daemon will check the smb.conf file for the presence of the idmap
uid and idmap gid parameters. If they are are found, winbindd will use the values specified
for for UID and GID allocation. If these parameters are not specified, winbindd will start
but it will not be able to allocate UIDs or GIDs.
When Samba has been packaged by an operating system dealer, the startup process is
typically a custom feature of its integration into the platform as a whole. Please refer to your
operating system platform administration manuals for specific information pertaining to
correct management of Samba startup.
4. SWAT: SWAT is a Web-based interface that can be used to ease the configuration of Samba.
SWAT might not be available in the Samba package that shipped with your platform, but in
a separate package. If you need to build SWAT please read the SWAT man page regarding
compilation, installation, and configuration of SWAT from the source code.
Did u know? What is nmbd?
To launch SWAT, just run your preferred Web browser and point it to http://localhost:901/.
Replace localhost with the name of the computer on which Samba is running if that is a different
computer than your browser.
SWAT can be used from a browser on any IP-connected machine, however be aware that
connecting from a remote machine leaves your connection open to password sniffing because
passwords will be sent over the wire in the clear.
To start a Samba server, type the following command in a shell prompt while logged in as root:
/sbin/service smb start
To set up a domain member server, you must first join the domain or Active Directory using the
net join command before starting the smb service.
To stop the server, type the following command in a shell prompt while logged in as root:
/sbin/service smb stop
The restart option is a quick way of stopping and then starting Samba. This is the most reliable
way to make configuration changes take effect after editing the configuration file for Samba. Note
that the restart option starts the daemon even if it was not running originally.
264 LoveLy professionaL university