Skip to content

Latest commit

 

History

History
71 lines (47 loc) · 1.91 KB

config.lubuntu.share.md

File metadata and controls

71 lines (47 loc) · 1.91 KB

REFS

on the 'share from' machine

install the programs

sudo apt install samba cifs-utils smbclient

create the share

open

sudo gedit /etc/samba/smb.conf

edit

[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

restart

sudo service nmbd restart

find out your IP

ifconfig

create a user/password grantin access to your share

sudo smbpasswd -a segtovichisv

on the 'share to' machine

install the programs

sudo apt install samba cifs-utils smbclient

list

smbclient -L //<HOST_IP_OR_NAME> -U

mount

e.g. access a real machine in the network host

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

e.g. access the virtualbox host

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