????????
??????????windows ?? Linux?????????????????????????????????nfs ??samba????????????????г????????pc-nfs??????client????????Linux??windows???????????????Samba?????????? ??????????????????á????????????????????????????????
????Windows????SMBЭ??????????????????????????????Samba??????SMBЭ?飬?????????????Windows??м??????????????
????????Samba??Linux???μ????????????????????windows ?? Linux ??????????
???????Samba ????
????1??SMBЭ??
????SMB (Server Message Block???????????) Э?飬????????????????/??????????Э?飬???????????????????windows??linux ????????????????????SMB????????????NetBIOS??SMB?????TCP/IP?????????NetBIOS??nameserver?? linux?????????windows ??????????????
????2??Samba
????Samba?????????SMB???????????????????Andew Tridgell?????????????Linux ????????е?????????????????????????1????
?????????????????????Windows??Linux??????????
???????server????????????????server??
??????????????????
????WINSserver??
???????SSL??
???????SWAT??
???????? Samba????
????1?? ???????
????Samba ??????????????smbd ??nmbd????????Samba?????????nmbd?????????????????Linuxserver??Smbd??????SMB???????????????????д???????????????????????Э????
????2?? ???????
????Samba ??????????????Daemon?????Inetd?????
??????1??Daemon??? ????????????rc.samba
????smbd -D -d1
????nmbd -D -d1
????-D ?????Daemon??????У?-d1 ?????????????
???????н?????rc.samba
??????2??Inetd???
?????????????/etc/services
????netbios -ssn 139/ tcp
????netbios -ns 137/ udp
?????????????/etc/inetd.conf
????netbios -ssn stream tcp nowait root /usr/sbin/smbd smbd
????netbios -ns dgram udp wait root /usr/sbin/nmbd nmbd
?????????????Inetd daemon
????# kill -HUP 1
????3?? ??????? smbclient
????Smbclient??????????????Sambaserver???????????????????ftp?????
?????????????#smbclient [password] [option]
????(1) ?????servicename??????????????????????????????????£?
????//server/service server ????????????NetBIOS?????????windows?????????????????????????е??????
????Service???server????????????????
????pssword ?????????????????
????option ??????????????? -L ?????г????server??????????
????-I ??????server??IP??????????servicesname ?е?NetBIOS??????????????
????(2)????smbclient????
????????smbclient????????????smbclient????????????????? smb:/>
?????????к???????ftp???????????cd ??lcd??get??megt??put??mput????????Щ???????????????????????????????