我想在我的窗口和ubuntu中的虚拟机之间创建一个共享文件夹:
TERMINAL:
sudo apt-get update
cd ~/ && mkdir <shared folder>
sudo apt-get install samba
sudo smbpasswd -a <username>
sudo cp /etc/samba/smb.conf ~
sudo nano /etc/samba/smb.conf
//at end of line
[name]
path = /home/<username>/<shared folder>
valid users = <username>
read only = no
browseable = yes
guest ok = yes
//
sudo service smbd restart
testparm
sudo apt-get install smbclient
smbclient -L <host ip/name> -U <username> <-problem here
smbclient <host ip/name> -U <username> <- problem here
我收到此错误:
WARNING: The "syslog" option is deprecated
Enter <ubuntu machine> password:
Connection to <host ip/name> failed (Error NT_STATUS_UNSUCCESSFUL)
我已将ubuntu vm设置为在桥接适配器上设置网络。 我认为自己做错了什么或为什么无法连接?