ubuntu下共享文件到windows
version: ubuntu:16.04, windows 7 64bit
软件安装
Install Samba
sudo apt-get update
sudo apt-get install samba
Set a password for your user in Samba
sudo smbpasswd -a <user_name>
eg.
a@a-pc:~$ sudo smbpasswd -a myname
New SMB password:
Retype new SMB password:
直接点要共享的文件,使能共享就行,后面的内容可选。
Create a directory to be shared
mkdir /home/<user_name>/<folder_name>
sudo cp /etc/samba/smb.conf ~ //bak the cfg file
sudo nano /etc/samba/smb.conf
Once "smb.conf" has loaded, add this to the very end of the file:
[<folder_name>]
path = /home/<user_name>/<folder_name>
valid users = <user_name>
read only = no
restart smbd
sudo service smbd restart

本文详细介绍如何在Ubuntu 16.04与Windows 7 64位系统间通过Samba实现文件共享。首先,需在Ubuntu上安装Samba服务,并为用户设置密码。然后创建共享目录,编辑smb.conf配置文件,最后重启smbd服务即可完成共享设置。
1208

被折叠的 条评论
为什么被折叠?



