Add your user to Samba, replacing $USER with your Linux username.
sudosmbpasswd-a$USER
First you will be prompted for your Linux password, then you will be asked to create a new SMB password for the user with permission to write to your new backup share. It can be the same password, or it can be different. Keep it somewhere safe, such as Vaultwarden.
Add your user to sambashare group, necessary on some systems.
sudousermod-a-Gsambashare$USER
Again, replacing $USER and entering your Linux password when prompted, not your new SMB password.
In case your system is running a firewall by default or due to your own custom configuration, enter these commands to allow connections to Samba. If it generates an error, you can safely ignore it:
Create a directory to share or choose an existing one and make note of its location (path). For this example, we will call the share backup-share and its corresponding shared directory will be located at /home/$USER/start9-backup. Replace $USER with your Linux username below.
mkdir-p/home/$USER/start9-backup
Note
If you are on Fedora 38+, you need to do an extra step to allow the Samba share in SELinux: