欢迎来到天天文库
浏览记录
ID:34726550
大小:365.01 KB
页数:7页
时间:2019-03-10
《ubuntu和windows系统的文件共享》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、Ubuntu和windows进行文件共享方式一通过samba服务共享设置打开终端依次输入命令安装Sudoapt-getinstallsambaSudoapt-getinstallsmbfsUbuntu下文件的共享1配置samba服务的方式共享打开终端输入一下修改smb.conf文件#ShareTest[share]comment=LinuxSharepath=/forlinxpublic=yeswriteable=nobrowseable=yesguestok=yes修改完成以后重新启动服务sudo/etc/init.d/smbdrestart启动成功后提示smbdstart/running
2、,process3527查看本机的ip地址ifconfigeth0Linkencap:以太网硬件地址00:0c:29:bb:27:4dinet地址:192.168.218.138广播:192.168.218.255掩码:255.255.255.0inet6地址:fe80::20c:29ff:febb:274d/64Scope:Link通过ifconfig命令我们看到我的ip地址是192.168.218.138在wondows中输入就可以打开共享了方式二-通过vsftpd的方式在终端中输入sudoapt-getinstallvsftpd按章vsftpd软件修改文件sudogedit/etc/v
3、sftpd.conf如下的格式#Exampleconfigfile/etc/vsftpd.conf##Thedefaultcompiledinsettingsarefairlyparanoid.Thissamplefile#loosensthingsupabit,tomaketheftpdaemonmoreusable.#Pleaseseevsftpd.conf.5forallcompiledindefaults.##READTHIS:ThisexamplefileisNOTanexhaustivelistofvsftpdoptions.#Pleasereadthevsftpd.conf.5
4、manualpagetogetafullideaofvsftpd's#capabilities.###Runstandalone?vsftpdcanruneitherfromaninetdorasastandalone#daemonstartedfromaninitscript.listen=YES##RunstandalonewithIPv6?#Likethelistenparameter,exceptvsftpdwilllistenonanIPv6socket#insteadofanIPv4one.Thisparameterandthelistenparameteraremutually
5、#exclusive.#listen_ipv6=YES##AllowanonymousFTP?(Disabledbydefault)anonymous_enable=NO##Uncommentthistoallowlocaluserstologin.local_enable=YES##UncommentthistoenableanyformofFTPwritecommand.write_enable=YES##Defaultumaskforlocalusersis077.Youmaywishtochangethisto022,#ifyourusersexpectthat(022isusedb
6、ymostotherftpd's)#local_umask=022##UncommentthistoallowtheanonymousFTPusertouploadfiles.Thisonly#hasaneffectiftheaboveglobalwriteenableisactivated.Also,youwill#obviouslyneedtocreateadirectorywritablebytheFTPuser.#anon_upload_enable=YES##UncommentthisifyouwanttheanonymousFTPusertobeabletocreate#newd
7、irectories.#anon_mkdir_write_enable=YES##Activatedirectorymessages-messagesgiventoremoteuserswhenthey#gointoacertaindirectory.dirmessage_enable=YES##Ifenabled,vsftpdwilldisplaydirectorylistingswiththetime#i
此文档下载收益归作者所有