使用samba工具可以方便的在windows上查看linux上的共享目录
1.下载ubuntu安装即可,在选择网络模式的时候选择桥接模式。
2.设置用户root用户密码
3.切换到root用户更新数据源
4.安装openssh-server工具
- apt-get install openssh-server
5.安装net-tools
完成以上操作就可以查看ip地址用xshell登陆了,注意xshell不能用root用户直接登陆下面开始安装samba共享工具
6.安装samba和vim文本编辑工具
- apt-get install samba
- apt-get install vim
7.设置samba文件
- vim /etc/samba/smb.conf
- 在最下方添加一个root配置项
- [root]
- comment=root
- path=/root
- browseable=yes
- readonly=no

8.设置用户
- smbpasswd -a root
- 输入密码
- 输入确认密码
9.现在就可以在windows上运行了,输入\\ip就可以连接到共享目录啦,复制删除都可以的。

相关文章:
-
2021-11-09
-
2021-07-13
-
2021-11-12
-
2022-12-23
-
2022-12-23
-
2021-11-19
-
2021-05-04
-
2022-02-08
猜你喜欢
-
2022-12-23
-
2022-12-23
-
2022-12-23
-
2021-12-21
-
2021-11-20
-
2021-04-22
-
2022-01-09
相关资源
-
下载
2022-12-27
-
下载
2022-12-16
-
下载
2021-06-06