Notes on how I setup Samba on a test server to play around. This was a quick setup to give a basic outline of how to get this running. This may not be very secure, or secure at all, so please use caution!
Install
I don’t need extra stuff (like printing capability, etc.) so I will disable suggested/recommended packages.
vim.tiny /etc/apt/apt.conf.d/70debconf
Append following:
APT::Install-Recommends "0"; APT::Install-Suggest "0";
Save file.
apt-get update apt-get install samba samba-common-bin
Configure
Generate samba password for existing Linux user:
smbpassword -a username
If no existing Linux user, create user then set samba password:
useradd -c username "John Doe"
smbpasswd -a username
mv /etc/samba/smb.conf /etc/samba/smb.conf.orig vim.tiny /etc/samba/smb.conf
Contents of smb.conf:
# Global config [global] workgroup = techish.local netbios name = SPROCKET server string = File server map to guest = Bad User log file = /var/log/samba/log.%m max log size = 15 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 preferred master = No local master = No dns proxy = No security = User # Shares [Tmp] path = /tmp read only = No [homes] path = /home/%u writable = yes browseable = no
Start/Restart Samba
/etc/init.d/samba stop /etc/init.d/samba start
Test
Browse to the IP address of that server 1.2.3.4 from your Windows machine and confirm everything works.