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

Linux服务器
Linux/UNIX命令dd简介
分级防御 针对Linux服务器攻击防范
Linux下Apache配置虚拟主机+SSL
Linux系统的服务器攻防技术详解
Linux环境使用TC进行服务器流量控制方法
Apache服务器使用.htaccess实现图片防盗链
整理一些linux系统一些常用的系统信息查看命令
修改Linux系统下22端口两种方法
加强Linux系统在安全方面的管理
linux创建一定大小文件命令--dd
linux下configure命令详细介绍
使用linux cd命令来改变所在目录
巧用linux cd命令和Pushd切换目录
linux中Find命令的使用
DB2在Linux和UNIX环境下的安装
教程:三万元搭建LINUX服务器集群
Linux集群的虚拟化技术面临的挑战
Linux 服务器的安全隐患以及防范对策
使用linux下的TC进行服务器流量控制
在linux上使用BIND建立DNS服务器

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-10-18   浏览: 38 ::
收藏到网摘: 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.