The simplest way since you are asking for Ubuntu support is to install Samba (as well as many thousands of apps) using Ubuntu's commandline apt tool. Install from the default repository.
To get to the commandline interface, hit this keyboard shortcut: Ctrl+Alt+T.
Then at the run this at the terminal prompt:
$ sudo apt install samba
Edit the/etc/samba/smb.conf file to create the shares you want to provide on the server.
Create the directory you want to share (or use a directory you already have) then add the share to the smb.conf file.
Creating a shared folder:
$ sudo mkdir -p /mnt2/mysharedfolder
Add the share to the server:
Sample share entry (/etc/samba/conf):
[sharedfolder]
comment = My Server Shared Folder
path = /mnt2/mysharedfolder
force user = user1
writeable = yes
browseable = yes
create mask = 0700
valid users = user1, user2
Change user# for real user names that you have created on your server and created a samba account.
Create the samba account with:
$ sudo smbpasswd -a user1
Other available configurations such as mask are explained in details in the notes of the /etc/samba/smb.conf file. You can also access the manual using the commands man samba or man smb.conf.
After making a change to the /etc/samba/smb.conf be sure to restart the samba server with:
$ sudo systemctl restart smbd
You might consider upgrading your Ubuntu OS to the lastest LTS version, which currently is version 16.04, which will be supported with release updates for the next 5 years. A non lts version will have release updates for less than a year.
I need help to create a samba server in Ubuntu Server 24.04 LTS
How to configure Samba Server share on Ubuntu 20.04 Focal Fossa Linux - LinuxConfig.org
Videos
Hello, I need to create a samba server on Ubuntu Server 24.04 LTS, that has a public folder, 3 private folders, each one with a user and password, and that I can set a fixed IP for the server, but I follow all the corresponding steps, creating the folders, giving permissions and giving ownership to the folders, but when I access a private folder it simply tells me that I do not have permissions to access the folder, (I am Spanish so the screenshots will be in Spanish but I can translate them), and I really really really need help because it is for a project and the server I had before had been corrupted in some way and now that I do it again it does not work for me.
Thank you very much :D