image\overbutt.gifSetting up a shared directory or printer

After you have set up your Samba server, you can set up Linux files and printers for sharing with Windows users. You can use Corel File Manager to configure all file and printer sharing.

When you share a directory or printer using Corel File Manager, the configuration information that you enter into the File Manager forms is automatically written to the smb.conf file. This lets you create shared directories and printers without editing the smb.conf file.

The following text is an example of what is written to the smb.conf file when the root user shares the home directory for root1. The following smb.conf entry shows that the root user specified that the directory should be readable by the network group, group1, and writable by the users pc1 and pc2.

#sample smb.conf entry for a file share

[root1]

public=no

writable=yes

browseable=yes

path=/home/root1

readlist=@group1

write list=pc1, pc2

max connections=0

available=yest

 

To share a directory

1. In Corel File Manager, locate the directory that you want to share.

2. Right-click on the directory, and click Sharing.

3. Click the Windows Sharing tab.

4. In the Windows Sharing dialog box, enable the Shared As button.

5. Type a name for the share in the Share Name box.

6. Type a comment in the Comment box.

7. Type a value in the User Limit box to specify the maximum number of users that can access the shared directory at the same time.

8. Click the Permissions button to configure permissions for the directory.

9. In the Access Through Share Permissions dialog box, add the users or groups that you want to have access to the files in the directory.

To restrict access to files within a shared directory

1. In Corel File Manager, locate the file for which you want to set permissions for.

2. Right-click the file, and click Properties.

3. Click the Permissions tab.

4. Set the permissions and ownership of the file by selecting the appropriate boxes in the Access Permissions and Ownership boxes.

To share a printer

1. In Corel File Manager, locate the printer that you want to share.

2. Right-click the printer, and click Properties.

3. Click on the Windows Sharing tab.

4. Enable the Shared As button.

5. Type a name for the printer in the Share Name box.

6. Type a comment in the Comment box, if desired.

7. Click the Permissions button to configure permissions for the directory.

8. In the Access Through Share Permissions dialog box, add the users or groups that you want to have access to the printer.

image\nicon.gif Note

After you share a printer or directory you can view the smb.conf file to see how your file share was translated to smb.conf text. The following procedure describes how to view the smb.conf file using the More command. For information about Console commands, see the Corel LINUX User Guide.

To view an smb.conf file

1. Click the Console icon on the panel to open a Console window.

2. Type the following text to view the smb.conf file in the Console window:

more /etc/smb.conf