===============================================

SHARING - WORKAROUND FOR ANTERGOS

===============================================

stop the following service…

sudo systemctl stop samba
sudo systemctl stop smbd
sudo systemctl stop nmbd

verify if “smb.conf” file exist…

ls -l /etc/samba

if not then copy the file “smb.conf.default” to “smb.conf”

(this also fix sharing printer troubleshooting)…

cd /etc/samba
sudo cp smb.conf.default smb.conf

select to “OFF” “sharing” under “System Settings”…

System Settings --> Sharing --> “OFF”

install “gnome-user-share”, by “pamac-manager” or following command:

sudo pacman -S gnome-user-share

create “usershare” folder…

sudo mkdir -p /var/lib/samba/usershare

create a group “sambashare”…

sudo groupadd -r sambashare

change group of “usershare” folder…

sudo chown root:sambashare /var/lib/samba/usershare

change mode w/sticky bit on “usershare” folder…

sudo chmod 1770 /var/lib/samba/usershare

edit “smb.conf”…

sudo gedit /etc/samba/smb.conf

uncomment following line in “etc/samba/smb.conf” file

under [global] settings section…

include = /etc/samba/smb.conf.%m

add following lines at the end of [global] section of

“smb.conf” file then save file and exit gedit…

usershare path = /var/lib/samba/usershare
usershare max shares = 100
usershare allow guests = yes
usershare owner only = yes

verifying if the following services is setting to “enable”…

systemctl is-enables samba
systemctl is-enables smbd
systemctl is-enables nmbd

if not then settings it to “enabled”…

sudo systemctl enable samba
sudo systemctl enable smbd
sudo systemctl enable nmbd

verify if your user is in samba DB…

sudo pdbedit -L -v

if not then add your user to samba

(then give the sharing password)…

sudo smbpasswd -a

now reboot linux…

then, when system is ready, try to open nautilus (“File”)

choose a folder to share, right click on it, then

choose “Properties --> Sharing” and check “Sharing this folder”…

now view network resource in “Nautilus”, click on icon with your

PC name, click on it, then click on shared folder

and enter the sharing password previously set…

…and joy…

NOTE: 1) Sometimes sharing is not immediately, and take some time to work after boot.

2) If you uncheck “Sharing this folder”, then you click on unmount symbol

on Nautilus tree to uncouple sharing.