Tutorial: Easy Samba Sharing in Arch

Arch Wiki has some of the best documentation out there compared to any other distro. However there can be some little things missing. Through my experience and testing the last few days I wanted to get Arch setup for some really easy every day stuff like quickly sharing a folder on the network to "anyone". So yes you can go the the Arch Wiki and find allot of great info in regards to this but it is missing one key thing that I will mention during this.

So for new Linux users wanting to go or are currently using arch but haven't touched samba yet and or having problems see below cause it will be a sum of the Wiki plus a few tid bits here and there.

Setup Samba:

This makes you root for the time being to make these changes
Sudo -i

Copies the example samba config and pastes a copy of it with legit name for use "smb.conf"
cp /etc/samba/smb.conf.default /etc/samba/smb.conf

This and following is just setting up users shares
mkdir -p /var/lib/samba/usershare
groupadd sambashare
chown root:sambashare /var/lib/samba/usershare
chmod 1770 /var/lib/samba/usershare

nano /etc/samba/smb.conf
You have now editing the samba conif, paste the following below [global]
usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare allow guests = yes
usershare owner only = yes

Search for "security = user" in nano by pressing Ctrl W, then type security = user, hit enter.
Paste the following below "security = user:
map to guest = Bad User

Add yourself to the sambashare group:
usermod -a -G sambashare your_username

Make your username eligable for samba sharing:
pdbedit -a -u your_username

If not prompted to create a samba password type the following to do so:
smbpasswd your_username

Start up samba and enable it to start during each boot:
systemctl service start smbd
systemctl service start nmbd
systemctl service enable smbd
systemctl service enable nmbd

Lastly and this is key to be able to share a folder in your home directory like "Downloads or Documents" to anyone:
Either type chmod 755 /home/your_username
Or
Right click on your_username folder thats in the home directory, choose properties, permissions tab and make sure that group has "Read" or some file managers call it "Access Files" rights. Same things for the group Others. This will make it so that when you right click on a folder in your home directory and choose share, you can check the box thats says "Guest Access" and it will actually work.

Everything above must be one as root or you will need to type sudo before every command. Replace "your_username with your actual name that your currently logged in with. New users, all this may look complicated but its really easy and fast to do. I just wanted to explain what everything was doing.

If you right click on a folder and the option to share is not available, click on properties and see if its there. If not you will have to install a very small package that just enables it in what ever file manager application your Desktop Environment uses.
Nemo uses nemo-share package
KDE uses kdenetwork-filesharing package
Thunar... I am not sure might have to look that one up
Gnome uses Nautilus I believe and it uses nautilus-share package
This info is only important if the share option is missing when right clicking on a folder.

Hope this helps
End of my babbling