How to make an SMB-Share in Linux?

Well that’s pretty quiet easy to implement. First install the SMB-Server smbd with this command:

sudo apt install smbd -y

Then you should be able to edit the smb.conf – File in the directory of /etc/samba/ . Open this file and get to the end of it. Here you should enter the following lines (edit it as your preferred data):

[share]
comment = Share
path = /home/<user>/share
browseable = yes
create mask = 0777
directory mask = 0777
valid users = <user>
writeable = yes
max connections = 8

Change <user> to your user.

Then enter the following commands:

sudo systemctl restart smbd

sudo smbpasswd -a <user>

Here you have to enter the password for this user two times.

That’s it. Now your share is accessible from Windows or some other SMB-Client.

Have fun 👍😁