This guide details how to setup a SAMBA standalone server on Ubuntu 15.x which DOES NOT REQUIRE AUTHENTICATION to access shares.

  1. Install Ubuntu selecting the OpenSSH and SAMBA packages when prompted.
  2. If you’re installing SAMBA on an existing system run:
    # sudo apt-get install -y samba
  3. Update system:
    # sudo apt-get update && apt-get upgrade -y
  4. Delete /etc/samba/smb.conf
  5. Create a new /etc/samba/smb.conf as follows, replace WORKGROUP with your own setting:
       workgroup = WORKGROUP
       local master = yes
       preferred master = yes
       socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
       use sendfile = true
       log file = /var/log/samba/log.%m
       guest account = samba
       map to guest = bad user
       path = /data/samba
       read only = no
       force create mode = 0660
       create mask = 0660
       force directory mode = 0700
       directory mask = 0770
       guest ok = yes
  6. Create system user and set SAMBA password:
    # sudo groupadd samba
    # sudo useradd -g samba samba
    # sudo smbpasswd -a samba
    	(enter whatever password you prefer)
  7. Create data directory:
    # sudo mkdir -p /data/samba
    # sudo chown samba:samba /data/samba
    # sudo chmod 0770 /data/samba
  8. Restart SAMBA services:
    # sudo systemctl restart nmbd
    # sudo systemctl restart smbd
  9. You should then be able to browse to the server (ie. open Explorer and enter \\<your-server-name>) from a Windows PC. Enter username “samba” and the password you set for that user if prompted.


Leave a Reply

Your email address will not be published. Required fields are marked *