Minimal SMB configuration

Minimal configuration for Manjaro Samba share

Install samba package

Ensure the samba package is installed and the system is fully updated.

sudo pacman -Syu samba

Basic configuration

Create the config file /etc/samba/smb.conf

sudo nano /etc/samba/smb.conf

Insert the following and save the file

[global]
   workgroup = Manjaro
   server string = Samba Server
   server role = standalone server
   log file = /var/log/samba/log.%m
   max log size = 50
   guest account = nobody
   map to guest = Bad Password

[public]
   path = /srv/samba
   public = yes
   writable = yes
   printable = no

Test your config

sudo testparm /etc/samba/smb.conf

Create share and set permissions

Create the shared folder

sudo mkdir -p /srv/samba

Set permissions to any and all

sudo chmod ugo+rwx /srv/samba -R

Start the services

sudo systemctl enable --now smb nmb

Accessing the share

Linux client

Ensure you have the smbclient package installed. Open your file manager and enter the servername or IP address in a filemanager's location bar using the smb protocol

smb://servername

Windows client

Access the share using the filemanager and input the servername in this format - it is of course possible to use the IP address as well.

\\servername

More reading

Samba on Arch Wiki

Sample Samba configuration with comments smb.conf on samba.org