# Ist es nicht möglich auf einer Distro ein Netzwerk aufzurufen.
# Dann
sudo apt-get install gnome-user-share
# Sudo Pacman oder anders in jedenfall root
# Ist ifconfig (mit root aufrufen) nicht vorhanden.
sudo apt-get update
sudo apt-get install net-tools #(Je nach Distro mit Root)

# Als nächstes Samba installieren und am Ende ein Verz. mit Passwort und User erstellen.
# Dabei als Root egal welche Distro.
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

#################################################

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.
#
#======================= 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/freeage/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, enter:

systemctl enable smbd nmbd

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

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

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