Running the Samba Server

The Samba server consists of two daemons, smbd and nmbd. The smbd daemon provides the file and print sharing services. The nmbd daemon provides NetBIOS name server support.

You can run the Samba server either from the init scripts or from inetd (or xinetd) as a system service. Because Red Hat by default starts SMB services from the init scripts each time you boot, rather than as a service from inetd, you can use this command to start or stop the SMB server:

						# /etc/rc.d/init.d/smb start|stop
					

Using the init scripts provides better response to SMB requests rather than continuously spawning the programs from inetd.

Caution

The smb script in the /etc/rc.d/init.d directory was placed there by the Samba .rpm file and is deleted ...

Get Red Hat® Linux® 7 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.