jueves, 28 de mayo de 2020

LINUX. Samba Client. Basic configuration

Purpose

Mapped remote Samba server folders Linux machine boot client.

Steps

[1] Update system

  Command: apt-get update

  Command: apt-get upgrade


[2] Install Samba Client

 Command: apt-get install smbclient


[3] Check remote shares

Command: smbclient -U SambaUser -L 10.10.10.10
Description: Test connection


[4] Check manual connection

Command: smbclient //10.10.10.10/SambaDiskShare -U  SambaUser
DescriptionMap net share


[5] Configure start system to map samba remote shares

Command:  sudo mkdir /media/usbremoto
DescriptionCreate mount point


Command:  sudo cp /etc/fstab /etc/fstab.old
DescriptionBackup fstab file


Command:  sudo nano /etc/fstab 
DescriptionModify fstab file

//10.10.10.10/SambaDiskShare /media/usbremoto cifs username=SambaUser,password=XXXXXXXXX 0 0

Expecial for Raspberry Pi

//10.10.10.10/SambaDiskShare /media/usbremoto cifs username=SambaUser,password=XXXXXXXXX,,x-systemd.automount 0 0 


[6] Manual mount

  Command:  sudo mount -a


[7] Manual and visual verification

  Command:  ls /media/usbremoto


Future improvements
  • Hidden user & password
  • Modify share folders (read only)
  • Configure FW rules

Check at Linux
by GoN | Published: May 29, 2020 | Last Updated:

No hay comentarios: