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.- Log on to the primary computer as root.
- If Samba is not installed, install it.
- 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:
- Enter the workgroup or domain name.
- 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.
- Set Samba to start on boot.
- Share the
/aiw
drive as a share named aiw.
- 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.
- These settings are suggestions for the contents of
- 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 andaiw1
with the system user ID if you do not use the default.
- Replace
- Save the
smb.conf
file. - Restart the Samba daemon.
- Run the command smbpasswd -a root and enter the password for root.
- 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.
- 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>\aiwTo 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.
- Test the configuration by creating a file in the
drive_letter:\aiw1
directory and then deleting it. - Note the name of the drive for use during the installation process.
- Continue with Installing application servers on Windows computers.