配置SAMBA服务,将/Linux目录配置为user级可读可写共享(wlan无线网卡没有适配成功,网线适配成功了 也不知道咋回事)
1 samba安装
sudoaptinstallsamba s u d o a p t i n s t a l l s a m b a sudo apt-get install smbclient
2 修改vi /etc/samba/smb.conf文件,在最后一行添加内容并保存:
[linux]
security = user
path = /Linux
browseable = yes
writable = yes
3 添加用户linux,密码linux:
$ sudo adduser linux
Adding user linux' ...
linux’ (1001) …
Adding new group
Adding new user linux' (1001) with group
linux’ …
Creating home directory /home/linux' ...
/etc/skel’ …
Copying files from
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for linux
Enter the new value, or press ENTER for the default
Full Name []: linux
Room Number []: 0
Work Phone []: 0
Home Phone []: 0
Other []: 0
Is the information correct? [Y/n] y
$ sudo smbpasswd -a linux
New SMB password:
Retype new SMB password:
Added user linux.
4 重新启动samba进程:
sudo systemctl restart smbd
5 创建文件夹
sudo mkdir ./Linux
sudo chmod 777 Linux
6 vmware linux网络设置:
网络连接
方式设置为桥接
7 配置windows IP地址为静态IP地址
8 配置linux IP地址为静态IP 地址
9 网络连通性测试:
WINDOWS–>LINUX:
LINUX–>WINDOWS:
10 共享文件功能测试,输入正确密码才能访问:linux/linux
10.1 在windows放置文件,linux端的/Linux目录能读写共享
Linux端进行读写操作:
Windows能同步共享: