Samba
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-05-14
Samba文件共享应用
[root@localhost ]#rpm -qa | grep samba 检查Samba软件包
samba-3.0.23c-2
[root@localhost samba]#service smb restart 重启Samba服务
关闭 SMB 服务: [确定] 关闭 NMB 服务: [确定] 启动 SMB 服务: [确定] 启动 NMB 服务: [确定] [root@localhost samba]# vi etc/services 检查/etc/services文件netbios-开头记录是否被注释 netbios-ns 137/tcp # NETBIOS Name Service netbios-ns 137/udp netbios-dgm 138/tcp # NETBIOS Datagram Service netbios-dgm 138/udp netbios-ssn 139/tcp # NETBIOS session service netbios-ssn 139/udp [root@localhost samba]# vi smbusers 添加Windows映射账户 # Unix_name = SMB_name1 SMB_nam2 ... root = administrator admin nobody = guest pcguest smbguest [root@localhost samba]# vi smb.conf 编辑smb.conf配置文件 workgroup = Workgroup // 工作组名称 server string = Samba Server Version %v hosts allow = 172.16.0. 172.16.1.254. max log size = 50 security = user // 共享安全级别 passdb backend = tdbsam # --------------------------- Printing Options ----------------------------- # # Load Printers let you load automatically the list of printers rather # than setting them up individually # # Cups Options let you pass the cups libs custom options, setting it to raw # for example will let you use drivers on your Windows clients # # Printcap Name let you specify an alternative printcap file # # You can choose a non default printing system using the Printing option load printers = yes cups options = raw #============================ Share Definitions ========================== [printers] // 打印机共享 comment = All Printers path = /var/spool/samba browseable = yes guest ok = yes writable = yes printable = yes [abcd] // 添加共享文件夹 comment = this is pubfile path = /abcd writable = yes browseable = yes read list = root write list = @root |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
关于Samba的所有评论