Samba is a powerful tool that enables users to share files seamlessly in Linux. You need to setup Samba to enable file sharing between Siemplify nodes that will form a cluster.

  1. SSH into the Linux server you are going to use for file sharing.
  2. Install Samba using the command:
    yum install samba samba-client samba-common -y
  3. Disable SELinux.
    1. Check the SELinux status by typing:
      sestatus

      vi /etc/selinux/config
    2. Change selinux=enforcing to selinux=disabled
    3. Reboot the server to apply changes in SELinux:
      reboot
    4. Log in to the server again.
      If SELinux is successfully disabled you should see the following output of sestatus command:
  4. Add exceptions to the firewall and reload the firewall using the command:
    firewall-cmd --get-active-zones

    firewall-cmd --zone=internal --change-interface={Network_Interface_Name}
    firewall-cmd --set-default-zone=internal
    firewall-cmd --permanent --zone=internal --add-service=samba
    firewall-cmd --reload
  5. Create a user for access.
    adduser siemplifyuser
  6. Set the password for the user.
    passwd siemplifyuser
  7. Create a system group for Samba. Enter each command one by one and then press ENTER after each one.
    groupadd smbgrp
    usermod {The_User_You_Will_Use} -aG smbgrp
    smbpasswd -a {The_User_You_Will_Use}

For example:
groupadd smbgrp
usermod siemplifyuser -aG smbgrp
smbpasswd -a siemplifyuser

  1. Backup the original configuration smb.conf to smb.conf.origbackup using the command:
    cp /etc/samba/smb.conf /etc/samba/smb.conf.origbackup
  2. Create a secure directory where the files will be shared. Enter each command one by one and then press ENTER after each one.
    mkdir -p /srv/samba/siemplifyshare
    chmod -R 0770 /srv/samba/siemplifyshare
    chown -R siemplifyuser:smbgrp /srv/samba/siemplifyshare
    chcon -t samba_share_t /srv/samba/siemplifyshare
  3. Add this configuration to the bottom of smb.conf
  4. Open smb.conf file using the command
    vi /etc/samba/smb.conf
  5. Add the following commands to the configuration at the bottom (including the square brackets)
    [Siemplifyshare]
    comment = Secure File Server Share
    path = /srv/samba/siemplifyshare
    valid users = @smbgrp
    guest ok = no
    writable = yes
    browsable = yes
  1. Save and exit using the command:
    :wq
  2. Start and enable Samba services by entering each command one by one and then press ENTER after each one.
    systemctl enable smb.service
    systemctl enable nmb.service
    systemctl start smb.service
    systemctl start nmb.service

Need more help with this?
Click here to open a Support ticket

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.