日期:2014-05-16  浏览次数:20775 次

linux ftp不能用 用smb进行共享 实现文件共享

root用户登录

?

1.查看smb服务状态

?? [root@localhost root]# service smb status
?? smbd is stopped
?? nmbd is stopped

2.开启smb服务

?? [root@localhost root]# service smb start
?? Starting SMB services:???????????????????????????????????? [? OK? ]
?? Starting NMB services:???????????????????????????????????? [? OK? ]

3.设置共享文件夹

?? vi cd /etc/samba/smb.conf

??? ;[myshare]
??? ;?? comment = Mary's and Fred's stuff
??? ;?? path = /usr/somewhere/shared
??? ;?? valid users = mary fred
??? ;?? public = no
??? ;?? writable = yes
??? ;?? printable = no
??? ;?? create mask = 0765
??? [gslw]
??? comment=gslw
??? path=/home/gslw
??? public ok = yes
??? guest ok=yes
??? write list =root
??? read list=gslw

4.重启服务

?? [root@localhost samba]# service smb restart
?? Shutting down SMB services:??????????????????????????????? [? OK? ]
?? Shutting down NMB services:??????????????????????????????? [? OK? ]
?? Starting SMB services:???????????????????????????????????? [? OK? ]
???Starting NMB services:???????????????????????????????????? [? OK? ]

5.win+r 输入ip即可访问设定的共享文件夹

??? ???

?