SMB

Samba (SIFS) How To

2016-12-31. Category & Tags: Samba, CIFS, SMB

Warn: for public internet, use vpn/ssh-tunneling (with samba config-ed for vpn/local nic address) or SSHFS.
OBS: CIFS is new protocal, SMB is deprecated after win server 2003. ref

See Also Links
SFTP: FTP over SSH
SSHFS
NFS

UBUNTU AS SERVER #

sudo apt-get install -y samba samba-vfs-modules

CONFIG UBUNTU SERVER FOR GUEST/ANANOMOUS (NO PASSWORD) #

cp -pf /etc/samba/smb.conf /etc/samba/smb.conf.bak && \
cat /dev/null  > /etc/samba/smb.conf && \
vim /etc/samba/smb.conf

Paste the foloowing config:

[global]
# keep workgroup the same as windows client
workgroup = WORKGROUP
server string = Samba Server %v
# the name will be used as \\<netbiosNmae> in windows, manual setup win hosts file for ip will not work if not matching this name.
netbios name = ubuntu
security = user
map to guest = bad user
dns proxy = no
log level = 2
log file = /var/log/samba/all.log
#log file = /var/log/samba/%S.%I.%m.log # serviceNmae.clientIp.clientDomain.log

#============ Share Definitions ============#
[Anonymous]
path = /samba/anonymous
browsable =yes
writable = yes
guest ok = yes
read only = no
force user = nobody

Ready to go:

...