Keine Ahnung warum die Einstellungen von Ubuntu gingen nicht. Hier mein Ergebnis. Wir erstellen Eine Verzeichnisfreigabe für das Verzeichnis Downloads.

Im Terminal

su

pacman -S samba
pacman -S nautilus-share

mkdir -p /var/lib/samba/usershare

groupadd sambashare
chown root:sambashare /var/lib/samba/usershare
cp /etc/samba/smb.conf.default /etc/samba/smb.conf

################################################# Install a Editor like gedit or us a ather 1

gedit /etc/samba/smb.conf

#all u need in smb.conf down copy that The Rest unter u can erase.
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command „testparm“
# to check that you have not made any basic syntactic errors.
#

 

U only need this in the samba.conf unter the Line copy this!  Stop on the Line Stop
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = WORKGROUP

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

map to guest = bad user
#============================ Share Definitions ==============================
[Downloads]
path = /home/user/Downloads
comment = Downloads
browseable = yes
writable = yes
Ende von smb dont copy the Rest down.

 

 

 

STOP———————————-Next
We still need to enable the samba service. In the terminal,  Put your Username for Username thats all

 

systemctl enable smbd nmbd

systemctl start smbd nmbd
#User mit Passwort anlegen. Great User with Password

smbpasswd -a username
#Dann Ordner mit Ordnername und User Freigeben. Then Folder with only User right

net usershare add Downloads /home/username/Downloads/ Downloads „Everyone:R,username:F“