SMB configuration
This supposes you're running as root on Ubuntu.
Install samba:
apt update && apt install samba
Create a user for your shared folder, called share here:
adduser share
Note that the password set here is NOT be the one you use to access the samba share, this will be set later.
Other info can be left blank.
Create the folder you want to share, and set the owner to the new user:
mkdir /srv/share
chown share:share /srv/share