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

[global] workgroup = WORKGROUP
netbios name = ubuntu
security = user[test] 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
testparm
In filemanager in your another pc window or linux
192.168.11.1test
Run this
and now you can add/edit new files and folder to test directory