Share SAMBA
Edit /etc/samba/smb.conf:
Server
Installation
sudo apt install samba
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backbash
Configuration
Edit /etc/samba/smb.conf:
[share]
path = /home/user/share
browseable = yes
read only = nobash
Set User Password
sudo smbpasswd -a user
sudo service smbd restartbash
Client
Installation
sudo apt install smbclient cifs-utils
mkdir /home/sharebash
Add Authentication Information
Create /etc/samba/user:
username=<user>
password=<password>bash
Mount Directory Automatically on Boot
Edit /etc/fstab:
//SRV-WINDOWS/prod/share /home/share cifs credentials=/etc/samba/user,noexec 0 0bash