Linux PC von anderen PCs zugänglich machen

Samba / SMB auf dem Linux Rechner installieren auf den zugegriffen werden soll und dann die anderen Geräte auf die IP des Linux - Rechners zugreifen lassen
 
pacman -S samba oder apt install samba
sudo usermod -a -G sambashare $USER

nano /etc/samba/smb.conf
Zeile 30-35 ändern auf dein Szenario

Code:
[global]
   workgroup = WORKGROUP
   dns proxy = no
   log file = /var/log/samba/%m.log
   max log size = 1000
   client min protocol = SMB2
   server role = standalone server
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
   pam password change = yes
   map to guest = Bad Password
   usershare allow guests = yes
   name resolve order = lmhosts bcast host wins
   security = user
   guest account = nobody
   usershare path = /var/lib/samba/usershare
   usershare max shares = 100
sudo usermod -a -G sambashare $USER    usershare owner only = yes
   force create mode = 0070
   force directory mode = 0070
   load printers = no
   printing = bsd
   printcap name = /dev/null
   disable spoolss = yes
   show add printer wizard = no

[DEIN FREIGABENAME]
   path = /home/DEIN_USER/DEIN_FREIGABE_ORDNER
   browseable = yes
   read only = no
   guest ok = no
   valid users = DEIN_USER
 
   [homes]
   comment = Home Directories
   browseable = no
   read only = yes
   create mask = 0700
   directory mask = 0700
   valid users = %S

[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no


UFW Forwarding.

ufw allow 137/udp
ufw allow 138/udp
ufw allow 139/tcp
ufw allow 445/tcp

Danach neustarten, sogar der NTEBIOS Name ist sichtbar.

connect mit

smb://192.168.x.x
 
Zurück
Oben