- https://www.thomas-krenn.com/en/wiki/Simple_Samba_Shares_in_Debian
- https://help.ubuntu.com/community/How%20to%20Create%20a%20Network%20Share%20Via%20Samba%20Via%20CLI%20%28Command-line%20interface/Linux%20Terminal%29%20-%20Uncomplicated,%20Simple%20and%20Brief%20Way!
- https://www.strika.co/ubuntu-14-04-how-to-properly-mount-a-cifs-share-as-a-normal-user/
sudo apt install samba cifs-utils smbclient
sudo gedit /etc/samba/smb.conf
[custom]
path = /home/segtovichisv/storage/
valid users = segtovichisv
read only = no
#https://serverfault.com/questions/70570/does-samba-work-well-with-windows-when-case-sensitive-names-are-enabled
case sensitive = True
default case = lower
preserve case = yes
short preserve case = yes
#>With this configuration, you will get a share named #> public #> which accesses a partition that has been mounted under: #> /media/storage
sudo service nmbd restart
ifconfig
sudo smbpasswd -a segtovichisv
sudo apt install samba cifs-utils smbclient
smbclient -L //<HOST_IP_OR_NAME> -U
share "/etc/fstab" "mount.cifs"
sudo gedit /etc/fstab
//.../share-tag /home/user1/Desktop/mount-point cifs username=user2,domain=lab,noauto,rw,users 0 0
mount.cifs //.../share-tag ~/Desktop/mount-point
usual IP is //10.0.2.2
#TROUBLESHOOTING
cant connect => recheck /etc/samba/smb.conf (sudo service nmbd restart)
no permission to write => test chown and chgrp in the host machine
"the underlying file system does not support trash" => test chown and chgrp in the host machine