======Fileserver======
====SMB-protocol====
Installation:
  apt-get install samba samba-doc
Configure /etc/samba/smb.conf (for Samba-4)
[global]
  workgroup = PICOENTERPRISE
  ;server string = %h 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
  ;encrypt passwords = true
  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
  
[homes]
  comment = Home Directories
  browseable = no
  read only = no
  guest ok = no 
  create mask = 0775
  directory mask = 0775
  valid users = %S
[data1]
   comment = Data1
   path = /data1
   write list = @fred,@john
   valid users = @fred,@john
   force group = "fred"
   create mask = 0775
   directory mask = 0775
After this, and possibly some tweaking, check your smb.conf for any syntax errors:
  testparm
Create a user.
Firtst create a unix user:
  groupadd -g 1500 fred
  useradd  -g 1500 -u 1500 -d /home/fred -s /bin/bash fred
Add a samba-user
  smbpasswd -a fred
====NFS-protocol====
Installation:
  apt-get install nfs-common nfs-kernel-server portmap
Define your NFS-exports in /etc/exports
#
/export/home   192.168.1.0/255.255.255.0(rw,async,wdelay,nohide,insecure,no_root_squash,subtree_check)
/export/home2  192.168.2.0/255.255.255.0(rw,async,wdelay,nohide,insecure,no_root_squash,subtree_check)
/export/home3  192.168.2.0/255.255.255.0(ro,async,wdelay,subtree_check)
#
Let the NFS-server use the new config:
  exportfs -r
====WebDAV-protocol====
work in progress...
====FTP-protocol====
work in progress...