File server – samba

Install samba server

yum/apt-get   install samba samba-common

On client you need  yum/apt-get  cifs-utils

Main config file on server is located in /etc/samba/smb.conf . A lot of help in man page-> man smb.conf

example config for anonymous share.

[global]
workgroup = WORKGROUP
server string = %h server File Server
dns proxy = no
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
server role = standalone server
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = yes
security =domain, server,share, or user

[Share1]
path=/path/to/shared dir
browseable = yes
read only = no
writable = yes
guest ok = yes
force create mode = 0755
create mask = 077
follow symlinks = yes

[Private]
browseable = yes
read only = yes
guest ok = yes
path=/path/to/private
hosts allow = 192.168.3.2

[Restricted]
path = /path/to/restricted
guest ok = no
writable = yes
username = maina, lolio,

Client mount directory

mkdir /media/$username/Shared
mount -t cifs //Ip.addr.of.Server/path/to/share/

You can mount it as guest with -o guest,rw and more options from mount.
also can be put it /etc/fstab as :

//Ip.addr.of.Server//path/to/share/ /media/$username/Shared cifs defaults,guest 0 0