Starting SMB Daemons
A group of daemon programs handle Samba's client communiction in the background and can be configured to start automatically when your Linux system boots up. What exactly is a daemon? It's the name given to any type of program that is running in the background constantly. If your Samba daemons do not start automatically, you can specify them to by using a utility such as linuxconf. Also, you can start the daemons manually by using the following commands while logged in as root.
# /usr/sbin/smbd -D
# /usr/sbin/nmbd -D
When the daemons are started, they read your smb.conf file and show the resources and directories that are configured within that file. The deamons recheck the smb.conf file every 60 seconds by default. If any changes are made to the file, they will take effect the next time the daemons check the file.
Making it Work: Configuring Samba with SWAT
The Samba Web Administration Tool (SWAT) lets you to manage Samba with your browser.
Step 1: SETTING UP SWAT
SWAT is a great and easy way to edit the Samba configuration file (smb.conf), but in order to make SWAT work, you will need to first edit both the /etc/services and /etc/inetd.conf files. Add the lines below to your /etc/services file:
And the line below to your /etc/inetd.conf file:
swat stream tcp nowait,400 root /usr/sbin/swat swat
This assumes that SWAT is installed in the /usr/sbin directory. If SWAT is in a different directory, change that part of the line to show where it is located.
Step 2: LOG IN TO SWAT
Once these files have been correctly configured, open up your Web browser and type the following in your browser's "Location" field (the place where you usually type URLs):
When prompted, enter the username and password for the root user on your system. The main SWAT menu allows you to access all of the online Samba documents.
Step 3: SETTING UP GLOBAL VARIABLES
If you click on the "Globals" button, you will be able to access all of the global variables in the smb.conf file. Now you can can set up the Windows workgroup names and IP addresses of machines on your network.
Step 4: SHARING WITH SWAT
To create a shared directory using SWAT, click the "Shares" button. Enter a name for the share in the text field to the right of the "Create Share" button, then click the button. You will then be able to indcate the rest of the parameters needed to create that shared directory.