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.
  3. Configure Samba using a setup tool such as SMIT. 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. 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.
  4. Modify the smb.conf file located in /etc/samba/ (Linux) or /usr/lib/ (AIX) to include lines similar to these:
    [global]
       workgroup = RPDWorkgroup
       passdb backend = tdbsam
       encrypt passwords = Yes
       restrict anonymous = 2
       domain logons = No
       domain master = No  
       security = user
       wins support = No
       ntlm auth = Yes
       min protocol = SMB2
       max protocol = SMB3
       client min protocol = SMB2
       client max protocol = SMB3
    
    [aiw]
        comment = RPD share
        inherit acls = Yes
        path = /aiw
        read only = No
        write list = root aiw1
        valid users = root aiw1
        force create mode = 0664
        force directory mode = 0775
        guest ok = No
    
      Note:
    • 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).

    • You must enable the SMBv2 and SMBv3 protocols on the Samba server to avoid any connection errors.
  5. Optional: Add the following lines to the smb.conf under the [aiw] section to increase security:
    valid users = root aiw1
    hosts allow = windowspc
      Note:
    • Replace windowspc with the name of the application server and aiw1 with the system user ID if you do not use the default.
  6. Save the smb.conf file.
  7. Restart the Samba daemon.
  8. Run the command smbpasswd -a root and enter the password for root.
  9. 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.
  10. 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.

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