Share Directory of server with another pc in linux to window pc  or linux to linux pc , Here are the steps


//you need to install
 sudo apt install samba


//go the directory

sudo makdir  directory name in /var/www/html/

//make directory
sudo chmod 777 directory name
//give user rights
 sudo chown -R nobody:nogroup test
//edit file
sudo vi /etc/samba/smb.conf
// add this content at the last
workgroup = WORKGROUP
netbios name = ubuntu
security = user
comment = Anonymous File Server Share
path = /var/www/html/test
browsable =yes
writable = yes
guest ok = yes
read only = no
force user = nobody
//restart sever
sudo service smbd restart
// check for working
In filemanager  in your another pc window or linux
Run this
and now you can add/edit new files and folder to test directory