当前位置: 首页 > 图文教程 > 服务器 > Linux服务器 > FedoraLinux8配置SAMBA服务的过程

Linux服务器
RouterOS断流解决办法探讨
用ROS做PPPoE服务器
RouterOS官方防火墙脚本
RouterOS2.9透明代理设置方法
全面提升BINDDNS服务器安全
apache安装后自启动问题
RouterOS下配置DMZ
RouterOS的备份和恢复
Linux小型日程表挑战大型群件
并行版本系统CVS简单教程
红帽集成Xen虚拟化解决方案详解
Linux上实现虚拟化技术的优势
虚拟技术的现状与红帽集成情况
落在实处虚拟化技术应用
Xen和虚拟化技术学习指南
虚拟化能够解决软件安装的困境?
linux的域名解析系统设置
vsftpd.conf内配置参数说明
架设某大型网站服务器之全部过程
Linux环境下快速搭建维基网站

Linux服务器 中的 FedoraLinux8配置SAMBA服务的过程


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-18   浏览: 53 ::
收藏到网摘: n/a

1、使用yum命令来安装或更新你的SAMBA包。
 
yuminstallsamba
 
2、samba的配置文件在如下
 
/etc/samba/smb.conf
 
修改其配置如下:
 
#=======================GlobalSettings=====================================[global]#-----------------------NetwrokRelatedOptions-------------------------##workgroup=NT-Domain-NameorWorkgroup-Name,eg:MIDEARTH##serverstringistheequivalentoftheNTDescriptionfield##netbiosnamecanbeusedtospecifyaservernamenottiedtothehostname##InterfacesletsyouconfigureSambatousemultipleinterfaces#Ifyouhavemultiplenetworkinterfacesthenyoucanlisttheones#youwanttolistenon(neveromitlocalhost)##HostsAllow/HostsDenyletsyourestrictwhocanconnect,andyoucan#specifiyitasapershareoptionaswell#workgroup=robinserverstring=MYSERVERnetbiosname=MYSERVER;hostsallow=127.192.168.#---------------------------LoggingOptions-----------------------------##LogFileletyouspecifywheretoputlogsandhowtosplitthemup.##MaxLogSizeletyouspecifythemaxsizelogfilesshouldreach#logssplitpermachinelogfile=/var/log/samba/log.%m#max50KBperlogfile,thenrotatemaxlogsize=50#-----------------------StandaloneServerOptions------------------------##Scuritycanbesettouser,share(deprecated)orserver(deprecated)##Backendtostoreuserinformationin.Newinstallationsshould#useeithertdbsamorldapsam.smbpasswdisavailableforbackwards#compatibility.tdbsamrequiresnofurtherconfiguration.security=share;encryptpasswords=yesguestok=yesguestaccount=root#============================ShareDefinitions==============================[homes]comment=HomeDirectoriesbrowseable=nowritable=yes;validusers=%S;validusers=MYDOMAIN\%S[printers]comment=AllPrinterspath=/var/spool/sambabrowseable=no;guestok=no;writable=Noprintable=yes#Un-commentthefollowingandcreatethenetlogondirectoryforDomainLogons;[netlogon];comment=NetworkLogonService;path=/var/lib/samba/netlogon;guestok=yes;writable=no;sharemodes=no#Un-commentthefollowingtoprovideaspecificrovingprofileshare#thedefaultistousetheuser'shomedirectory;[Profiles];path=/var/lib/samba/profiles;browseable=no;guestok=yes#Apubliclyaccessibledirectory,butreadonly,exceptforpeoplein#the"staff"group;[public];comment=PublicStuff;path=/home/samba;public=yes;writable=yes;printable=no;writelist=+staff[temp]path=/root/tempwriteable=yes;browseable=yesguestok=yes

 3、重启SAMBA服务
 
/etc/init.d/smbrestart
 
4、Enjoy
 
PS:FedoraCore从V2起都有预装SELinux,这个不会配置的可以先把她关掉,关闭的方法如下:
 
修改/etc/selinux/config文件中的SELINUX=""为disabled,然后重启FC.