Configuring SMB Shares

on the linux box:

install samba:

sudo apt update
sudo apt install samba

edit the config:

sudo nano /etc/samba/smb.conf
#============================ Share Definitions ==============================

[sda1]
   path = /pathtoyourshare/yourdirectorytoshare
   writable = yes
   guest ok = yes
   guest only = yes
   read only = no
   create mode = 0777
   directory mode = 0777
   force user = nobody
  

control x, then y to save.

restart services:

sudo service smbd restart

this is full read/write/execute and no user restrictions. to test, this is fine, so we can rule out permissions issues. once you mount from the windows side and verify everything works, you should go back and edit the samba config to reflect your needs (a specific user share, and maybe 0750 for example).

from the windows box:

'this pc', right click in empty space, 'add network location'

click through, when you get to address put your linux share's ip address and directory, for instance: \\192.168.1.38\sharepath\sharedirectory\

continue clicking through. a window show open with all the file contents from the linux share.

Discussion

Enter your comment. Wiki syntax is allowed:
 
Last modified: le 2022/03/01 17:52