Hi all, in this video i will show how to install Samba Server on Arch Linux.

I hope you enjoy!

Links

git smb.conf

Commands

1. Install Samba

$ sudo pacman -S samba wget 

2. smb.conf

$ sudo wget -O /etc/samba/smb.conf LinkToSmb.ConfAbove

Edit /etc/samba/smb.conf and change:

  1. Line 26
workgroup = WORKGROUP   
  1. Create Samba Share In the end off file.
[sambashare]
comment = My Samba Share
path = /samba
writable = yes
browsable = yes
create mask = 0700
directory mask 0700
read only = no
guest ok = no

3. Directory and sambausers group

$ sudo groupadd -r sambausers
$ sudo usermod -aG sambausers yourUsername
$ sudo smbpasswd -a yourUsername
$ sudo mkdir /samba
$ sudo chown -R :sambausers /samba
$ sudo chmod 1770 /samba

4. Start the Services

$ sudo systemctl enable --now smb
$ sudo systemctl enable --now nmb  

5. Test the Server

$ smbclient -L //127.0.0.1/share -U yourUserName
smb> l
smb> exit

$ sudo chown -R g+rwx /samba

6. Connect from Windows