Sunday, January 08, 2023

creating a network share with samba on linux command line

Following this page, created a share by 
sudo nano /etc/samba/smb.conf

and adding at the end of it,
[mysharename]
path = /home/path/to/folder
valid users = myusername
read only = no

testparm
was successful, but 
sudo service smbd restart
indicated that there was no such service.

sudo apt install samba
was required.

After that, it worked, but soft links inside the shared folder were not visible. Hard links are only possible within the same physical volume, not across different disks. 

Following
added the following to the smb.conf file above, in the global section,
[global]
allow insecure wide links = yes

and in the [mysharename] section,
[mysharename]
follow symlinks = yes
wide links = yes

Another smbd restart, and now it was working fine. File transfer going around 15 to 20 Mbps on our wifi.  

No comments:

Post a Comment