Connecting to the primary computer using Samba

To use Samba file sharing, you must configure Samba on the primary computer so the /aiw filesystem is accessible to the Windows application server. The share is then mounted on the Windows application server.
To connect to the primary computer using Samba:
  1. Log on to the primary computer as root.
  2. If Samba is not installed, install it.

    • Samba is a native package in all major Linux and Free Unix distributions. For a native install of samba on your system, see your distribution package or port system.
  3. Make sure that you also have the samba-client and samba-common Red Hat Package Manager (RPM) installed to use the Samba software package.
  4. Configure Samba using a setup tool such as YaST. The following example uses SLES. While the configuration procedure is similar between operating systems, commands or tools used might differ. Configure as follows:
    1. Enter the workgroup or domain name.
    2. Optional: Set Ricoh ProcessDirector as a domain controller. Ricoh ProcessDirector does not need to be set as a domain controller. This setting does not affect Ricoh ProcessDirector functionality.
    3. Set Samba to start on boot.
    4. Share the /aiw drive as a share named aiw.
  5. Modify the smb.conf file located in /etc/samba/ to include lines similar to these:
    [global]
       passdb backend = tdbsam
       encrypt passwords = Yes
       security = user
    
    [aiw]
       comment = RPD share
       inherit acls = Yes
       write list = root aiw1
       path = /aiw
       read only = No

    • These settings are suggestions for the contents of smb.conf; they are not necessarily the exact settings you should use. The global section likely contains additional lines. Leave the additional lines in the file. Additional sections can be commented out or deleted to prevent other parts of the system from being shared through Samba.
      This configuration file must have read and write privileges from the Windows machine as the system user (aiw1 is the default).
  6. Optional: Add the following lines to the smb.conf under the [aiw] section to increase security:
    valid users = root aiw1
    hosts allow = windowspc

    • Replace windowspc with the name of the application server and aiw1 with the system user ID if you do not use the default.
  7. Save the smb.conf file.
  8. Restart the Samba daemon. On SLES, use the command:

    service smb restart

  9. Run the command smbpasswd -a root and enter the password for root.
  10. Run the command smbpasswd -a system_user, where system_user is the system user ID (aiw1 is the default), and enter the password for the system user.
  11. On the application server, map the /aiw filesystem from the primary computer using the Map Network Drive dialog in Windows and this address for the server:
    \\<primary_server_hostname>\aiw
    To map the network drive from a command prompt, use this command:

    net use <drive_letter>: \\primary_server_hostname\aiw

    To give read and write permission on the mapped Samba folder, use this command:

    setsebool -P samba_export_all_rw 1

    Replace primary_server_hostname with the hostname or IP address of the primary computer.

  12. Test the configuration by creating a file in the drive_letter:\aiw1 directory and then deleting it.
  13. Note the name of the drive for use during the installation process.
  14. Continue with Installing application servers on Windows computers.
 
Copyright © 2006, 2018