Before you configure Samba public share make sure to install Samba on Arch Linux or install Samba on Ubuntu Linux. You will also want to configure Samba shares. The public share is useful for sharing files freely between guest users without any credentials.
Create Public Share
Edit samba configuration file.
sudo nano /etc/samba/smb.conf
Add a public share definition to the end of the file. Public share will be accessible by any user without a password. This is useful for sharing files with guest users.
[Public] path = /mnt/virtual/public guest ok = yes guest only = yes
guest ok option set to
yes allows guest users to connect without a password. Set
guest only option to
yes to force any user to connect as a guest user. This will prevent new files from being created with a lack of adequate permissions for other users.
Optionally also configure Samba home share.