现在的位置: 首页 > 综合 > 正文

linux samba 与 Windows 共享文件

2011年07月20日 ⁄ 综合 ⁄ 共 650字 ⁄ 字号 评论关闭

 

1 安装 samba 服务
2 修改samba配置
   添加自定义配置节,其中b0b0就是windows用户登录samba的用户名
   [b0b0]
  comment = Samba server's CD-ROM
  read only = no
  locking = no
  path = /home
  guest ok = yes
4 修改 smb.conf ,重启服务
   service samba restart
3 windows主机访问 samba服务默认的用户名就是 windows的登录用户\

查看smb端口:
netstat -tlnp|grep smb
tcp6       0      0 :::139                  :::*                    LISTEN      1424/smbd      
tcp6       0      0 :::445                  :::*                    LISTEN      1424/smbd      

查看windows 共享
smbclient //192.168.1.101/ebook -U b0b0

Enter b0b0's password:
Domain=[HXPHB0B0] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
smb: \> read_socket_with_timeout: read error = 连接被对端重置.
Read from server failed, maybe it closed the connection

抱歉!评论已关闭.