Yesterday afternoon, the company gave me a photo of the annual meeting to share to everyone, first of all I think of is the FTP building, feel a bit of trouble point.
Thinking twice, the desktop is windows, so decided to use Samba to build a share, very simple.
My needs: can only see, can not be deleted or modified!
sudo apt-get install sambasudo apt-get install smbclientsudo apt-get install Samba-common System-config-samba Python-glad E2 Gksu
#修改配置文件mkdir-P/home/yancongadmin/20160114 Annual Meeting sudo vim/etc/samba/smb.conf #添加一下内容 [Share]comment=this is Linux share directorypath=/home/yancongadmin/20160114 Annual Meeting Public=yes #公共writable =no #不可写
Sudo/etc/init.d/samba start
Access the shared directory under Windows, click to run, enter \\192.168.0.203\share so that you can access the shared directory share with anonymous users.
Just so simple to meet my needs, a simple sharing setup is complete.
It's done in a few minutes.
This article is from "Zen Sword as" blog, please be sure to keep this source http://yanconggod.blog.51cto.com/1351649/1892797
Using Samba to share files in Ubuntu 16.04