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

onlykg 2011-05-28

root用户登录

1.查看smb服务状态

   [root@localhost root]# service smb status

smbdisstopped

   nmbd is stopped

2.开启smb服务

   [root@localhost root]# service smb start

StartingSMBservices:[OK]

   Starting NMB services:                                     [  OK  ]

3.设置共享文件夹

   vi cd /etc/samba/smb.conf

    ;[myshare]

;comment=Mary'sandFred'sstuff

;path=/usr/somewhere/shared

;validusers=maryfred

;public=no

;writable=yes

;printable=no

;createmask=0765

[gslw]

comment=gslw

path=/home/gslw

publicok=yes

guestok=yes

writelist=root

    read list=gslw

4.重启服务

   [root@localhost samba]# service smb restart

ShuttingdownSMBservices:[OK]

ShuttingdownNMBservices:[OK]

StartingSMBservices:[OK]

   Starting NMB services:                                     [  OK  ]

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

       

相关推荐