Cookie Consent
If you want to share a folder on your local network, on a server/desktop with Ubuntu 22.04 installed, you may fallow the steps below. In our specific case I'll show you how to share on local network NShare folder. All users that have access to your local network will have full access (regardless of having or not a user account on your application) to NShare folder.
$ sudo apt-get update
$ sudo apt-get -y install samba
$ sudo ufw allow "samba"
$ sudo smbpasswd -a user
$ sudo smbpasswd -e user
$ sudo nano /etc/samba/smb.confAt the end of the file add the fallowing lines:
[Whatever-Share]Ctrl+o to save file, Ctrl+x to exit nano editing mode.
comment = local network share
path = /var/www/html/folder of prvstorage app/storage/app/prv/NShare
read only = no
browsable = yes
$ sudo chmod 777 -R /var/www/html/folder of prvstorage app/storage/app/prv/NShare
$ sudo systemctl restart smbd