Sun 31 Dec 2006
An Overview of Samba As you can see, there are two standard packages: samba and samba-client. Click on Close, and then click on Update to start the installation. You’ll need the disk from your Red Hat Linux 9 distribution to complete the installation. Starting and Stopping the Samba Service As with other services we’ve seen, there are a number of ways to start and stop the Samba service. Once again, we can do so via the Service Configuration GUI tool. To launch the tool, select Main Menu | System Settings | Server Settings | Services or type the following command at the command line: $ redhat-config-services Then locate the smb service, as shown here: If the service is stopped (as shown here), then start it by clicking the Start button. It’s also a good idea to check the checkbox, to configure the samba service to start automatically whenever you boot up the system. For example, if you ever have to perform an emergency reboot on your file server, then the “automatic start” configuration means that the file server is immediately available to users after the reboot. When you’ve done this, select File | Save Changes to save your new setting. Alternatively, you can also stop and start smb service at the command line, using the service command to run the /etc/rc.d/init.d/smb script we mentioned earlier. Typing the script name at the command line like this reveals the possible usages: # service smb Usage: /etc/rc.d/smb {start|stop|restart|reload]status|condrestart} As you can see, it works in much the same way as the httpd and vsftpd scripts we’ve seen in earlier sections of this chapter. So, to start the service we’d type this: # service smb start Starting SMB services: [ OK ] Starting NMB services: [ OK ] This command starts both SMB and NMB (NetBIOS name server), which are both services related to Samba. To stop the service, we’d type this: 293
Hint: This post is supported by Gama web hosting php mysql provider