Configuring Samba

From Universal Devices, Inc. Wiki

Configure SAMBA on Polisy/eisy

SAMBA can be installed and configured to allow Windows desktop computers to directly access the Polisy/eisy file system. With this configured, you can use your preferred IDE to do node server development.

  1. Install the SAMBA package. sudo pkg install samba416
  2. Create the SAMBA config file. /usr/local/etc/smb4.conf
  3. Enable SAMBA. sudo service samba_server enable
  4. Restart SAMBA. sudo service samba_server start
  5. Set password for admin. sudo smbpasswd -a admin

Sample SAMBA config file

[global]
  workgroup = WORKGROUP
  server string = UDI-polisy
  netbios name = UDI-polisy
  security = user
  server min protocol = NT1
  server role = standalone server
  browseable = yes
  encrypt passwords = yes
  max log size = 500
  preferred master = yes
  remote announce = 192.168.2.255/WORKGROUP
  hosts allow = 192.168.2. 127.
  wins support = yes
  dns proxy = yes

[homes]
  comment = User Home
  browseable = no
  writeable = yes
  write list = @adm
  directory mask = 0775
  create mask = 0775

[ns]
  comment = PG3 nodeservers
  path = /var/polyglot/pg3/ns
  browseable = yes
  public = no
  writeable = yes
  write list = @adm
  directory mask = 0775
  create mask = 0775
  

The IP address in bold must be changed to match your network environment.

With the above in place, you should be able to connect to the admin home directory and the node servers directory using the admin account.

On Windows, map a network drive using:

  \\UDI-polisy\admin   (username:admin, password:<admin's password>)
  \\UDI-polisy\ns      (username:admin, password:<admin's password>)
  

For PG3x, you need to do a couple of extra steps to access the node server directories.

  1. Add admin to the polyglot group. sudo pw group mod polyglot -m admin
  2. Allow git to commit to ns directories. git config --global --add safe.directory "*"
  3. Restart SAMBA. sudo service samba_server restart