To configure the Samba server, you can use the Samba Server Wizard, the Samba Server Configuration panel, and Corel File Manager, all of which are provided with the Corel LINUX desktop. You should edit the smb.conf file only if you want to customize the Samba server.
The smb.conf file contains all the information that the smbd and nmbd server daemons use to process client requests. The smb.conf file contains sections that describe how services are performed. Each section is introduced by the subject of the section in square brackets, for example [global], which is then followed by directives.
The three main sections in the smb.conf file are the [global] section, which contains global directives for the server, the [homes] section, which contains configuration information for file sharing, and the [printers] directory, which contains configuration information for printing services.
The Samba Server Wizard automatically configures the smb.conf file, however, if you want to further customize your Samba server settings, you can add sections and directives to the smb.conf file using Text Editor.
For a detailed listing of the different options you can add to the smb.conf file, see the smb.conf man page. For information about Samba, visit the Resources page on the Corel LINUX Web site, http://linux.corel.com.
To configure the Samba server by editing the smb.conf file, you must open the smb.conf file in the Text Editor and add or modify the directives in the file. For the changes to the smb.conf file to take effect, you must stop and restart the processes that the Samba daemons are running. Before you can stop and restart the daemon processes, you must determine the process ids for the daemon processes. The following procedure describes how to edit the smb.conf file and stop and restart the server daemons.
You must be logged in as the root user to configure the smb.conf file.
To edit the smb.conf file
1. Click Application Starter, Utilities, Text Editor to open the Text Editor.
2. In the Text Editor open the smb.conf file.
3. Make the changes to the smb.conf file.
4. Save the changes to the smb.conf file.
5. Type the following text to determine the process id of the smbd daemon:
ps aux | grep smbd
This command outputs a text line in the following format:
root <process id> 0.0 0.0 000 000 ? S 00:00 0:00 /usr/sbin/smbd
6. Type the following text to determine the process id of the nmbd daemon:
ps aux | grep nmbd
This command outputs a text line in the following format:
root <process id> 0.0 0.0 000 000 ? S 00:00 0:00 /usr/sbin/nmbd
7. Type the following text to stop and restart the smbd daemon:
kill <process id>; usr/sbin/smbd
8. Type the following text to stop and restart the nmbd daemon:
kill <process id>; usr/sbin/nmbd
Note
The smb.conf file is located in the /etc/ directory.
You can stop processes using the Process Manager. For information about the Process Manager, see "Using the Process Manager."