Samba setup instructions

This thread is to help user set up samba shares on Netrunner Rolling Edition (Manjaro/Arch):

You will need to do all the following as root (system administrator).

First, Install Samba:

$ sudo pacman -S samba

Second, copy and paste the following in terminal:

$ cp /etc/samba/smb.conf.default /etc/samba/smb.conf

Third, add or edit these variables in /etc/samba/smb.conf:

usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare allow guests = yes
usershare owner only = False
security = share
workgroup = MYGROUP (set this to your windows workgroup name or whatever you want it to be)

Forth, copy and paste the following in a terminal:

$ systemctl enable smbd nmbd
$ export USERSHARES_DIR="/var/lib/samba/usershare"
$ export USERSHARES_GROUP="sambashare"
$ mkdir -p ${USERSHARES_DIR}
$ groupadd ${USERSHARES_GROUP}
$ chmod 1770 ${USERSHARES_DIR}
$ usermod -a -G ${USERSHARES_GROUP} your_user_name
$ pdbedit -a -u your_user_name
$ systemctl restart smbd nmbd

Finally, you will need to log out and back in for changes to take effect.

Note 1: The your_user_name user and password are necessary for access via the android devices and Cinnamon but not KDE.

Note 2: To share folders from within Dolphin:
Right click on folder to share and select properties then select share