If you don't have Samba installed on your system, the module's main page will complain that it cannot find the Samba configuration file and you will be unable to share any files or directories. If you do have Samba installed but are getting this error message, check the module configuration to make sure that Webmin is looking in the right place for the configuration file and Samba programs.
Assuming Samba is installed properly, the module's main page will display a list of all the file and printer shares defined on your system. If Webmin determines that the Samba server is not running, you will be given the option of attempting to start the server. This may be necessary if Samba is not started at bootup time.
To create a share, click on the Create File Share link below the list of existing shares on the main page. This will display a form allowing you to enter the details of the new share. Although Samba supports a large number of parameters for each share, the most important ones are:
Share Name | Every share must have a name, used by clients to refer to it. One special case is the All home directories share, explained later. |
Path | The directory to be shared. Clients using this share can only access files in or below this directory. |
Writable | Determines whether clients can write to files and directories in this share. |
Guest access | If a share allows guest users, clients can access it without needing to provide a valid name and password. A share can either disallow guest users, allow guests and normal users, or allow guests only. |
Once you have entered the details of a new share and clicked the Create button, it will be immediately available to client PC's. Assuming everything is set up correctly on your network, users will be able to use the Network Neighbourhood function under Windows to see your server and all its shares. The newly created share can then be mapped to a drive letter on the PC.
To create a new printer share, click on the Create Printer Share like from the main page. This will display a form similar to the one used for creating file shares, in which you can enter the details of the new share. The most important options for a new printer share are :
Share Name | Every share must have a name, used by clients to refer to it. One special case is the All printers share, explained later. |
Printer | The Unix printer to be shared. This can be any printer that you would print to using the lpr command. |
Path | The directory in which temporary print files |
Guest access | If a share allows guest users, clients can access it without needing to provide a valid name and password. A share can either disallow guest users, allow guests and normal users, or allow guests only. |
Printer type | The name of the printer driver that should be used for this printer. If you enter a value for this option and it matches a printer drive on client PCs, then users will not have to choose a printer driver when adding this printer. |
As with file shares, many more options are available for print shares. As soon as a printer share is added, it will be available to clients. Under Windows 95 and NT, a printer can be added using the Add Printer option in the printers control panel. Once added, the user can print to it like any local or network printer.
To delete a share, click on the Delete button at the bottom-right of the page. Existing users will not be immediately disconnected - however, no new users will be able to connect to the share.
Some versions of Windows do not allow the user to provide a username when accessing a share - instead, the username provided when 'logging in' to Windows is used. If all client users login to Windows using the same username that they use for Unix, then this is not a problem. If not, you have 2 options:
Fortunately, Samba can use encrypted passwords. However, it is not possible to match passwords sent by clients against the normal Unix password file because of the different forms of encryption used. For this reason, Samba must maintain its own list of users and passwords.
To switch Samba into encrypted password mode, you must: